Skip to content

Support dependencies with node_modules folders in them #4456

@tay1orjones

Description

@tay1orjones

🐛 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 015cbaa (this was in the bottom left corner of the page)
Browser Chrome
Operating System MacOS

Metadata

Metadata

Assignees

Labels

🎒 BundlerRefers to CodeSandbox's In-Browser Bundler

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions