codesandbox / codesandbox/codesandbox-client

Support dependencies with `node_modules` folders in them

Open
#4,456 19 comments 2 reactions 1 assignee View on GitHub

@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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.