AdobeDocs / AdobeDocs/uxp-indesign-samples
React-Starter doesn't allow 'indesign' to be imported
- Dominant language
- JavaScript
- Stars
- 30
- Forks
- 7
- PR merge metrics
- No merged PRs in 30d
Description
Tried using the `react-starter` template to build out a plugin. Was building out an interface, then tried to import indesign using:
```javascript
const { app } = require("indesign");
```
in one of my component files
Got: `Cannot find module 'indesign'` as an error.
Am able to import `uxp` no problem.
requiring `indesign` in a regular starter kit was no problem. Is there something I'm missing?
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the import failure in the react-starter template, then compare it with the regular starter kit where requiring indesign works. Confirm whether the component environment resolves the indesign module, and consider the issue complete when the reported import works in the react-starter template or the limitation is clearly documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100