codesandbox / codesandbox/codesandbox-client
Support dependencies with `node_modules` folders in them
Open
@DeMoorJasper is already working on this.
Since May 25, 2021.
🎒 Bundler
- Dominant language
- JavaScript
- Stars
- 13.6k
- Forks
- 2.4k
- Avg merge
- 6d 19h
- Merged PRs (30d)
- 2
Description
🐛 bug report
Description of the problem
I receive the error
ModuleNotFoundError
Could not find module in path: 'carbon-addons-iot-react/es/node_modules/carbon-components-react/es/prop-types/types.js' relative to '/node_modules/carbon-addons-iot-react/es/src/components/Button/Button.jsx'
Despite this being available at the location indicated.
Here's a screencap of our build output for carbon-addons-iot-react
Additionally you can see the file is available at this location in our package in unpkg
https://unpkg.com/carbon-addons-iot-react@2.93.5/es/node_modules/carbon-components-react/es/prop-types/types.js
How has this issue affected you? What are you trying to accomplish?
This prevents us from using codesandbox as a bug reporting and example code tool.
Link to sandbox: https://codesandbox.io/s/objective-darkness-r8xzc?file=/src/index.js
Your Environment
| Software | Name/Version |
|---|---|
| Сodesandbox | 015cbaa7b (this was in the bottom left corner of the page) |
| Browser | Chrome |
| Operating System | MacOS |
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.