codesandbox-client
codesandbox-client copied to clipboard
Sandboxes from CI do not resolve relative imports
🐛 bug report
Preflight Checklist
- [x] I have read the Contributing Guidelines for this project.
- [x] I agree to follow the Code of Conduct that this project adheres to.
- [x] I have searched the issue tracker for an issue that matches the one I want to file, without success.
Description of the problem
Sandboxes generated from CI do not include dependencies.
ModuleNotFoundError
Could not find module in path: '@carbon/react/es/node_modules/use-resize-observer/polyfilled.js' relative to '/node_modules/@carbon/react/es/components/CodeSnippet/CodeSnippet.js'
In the case of this sandbox, CodeSnippet uses use-resize-observer
. This dependency is declared as a dependency in packages/react
.
Based on the error message I'm unsure if the use-resize-observer
dependency is not in node_modules
at all or if there's some other resolution issue.
How has this issue affected you? What are you trying to accomplish?
I'm trying to set up the CI for our monorepo project and this is blocking. This problem doesn't happen locally or in any other environment we've tested. I'm not sure how to resolve it.
To Reproduce
https://github.com/carbon-design-system/carbon/pull/12029#issuecomment-1231792730
Link to sandbox: link (optional)
Your Environment
Software | Name/Version |
---|---|
Сodesandbox | |
Browser | |
Operating System |
@JamesACS This looks very similar to https://github.com/codesandbox/codesandbox-client/issues/6658
and https://github.com/codesandbox/codesandbox-client/issues/6499
Perhaps this is the same thing - subpaths not working?