-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Could not find module in path" error even though installed #2276
Comments
Hey @gragland , It seems to work fine here: |
Oh, weird, working for me now as well. Will close this and re-open if I see the issue again. |
Okay seeing this issue again and have error details:
It's currently not working in this sandbox: https://codesandbox.io/s/4pe06 but is working in the original sandbox I posted. |
@lbogdan Is there any other info I can provide on this? I'm currently using this analytics library in the code that divjoy.com exports to CodeSandbox and seeing a lot of users export broken projects to CodeSandbox. Wondering if there's an issues somehow with the analytics lib (although not sure that would make sense given it seems to be an intermittent problem) or if it relates to CodeSandbox or cdn.jsdelivr.net. Happy to provide any info if it's still not happening on your end with https://codesandbox.io/s/4pe06 |
Okay figured out the culprit with the help of @DavidWells. uBlock Origin was blocking the script from being loaded from unpkg, even with it set to "allow all scripts" (presumably because it's loaded from the csb.app domain). Guess it doesn't like anything with the term "analytics" in the path. @lbogdan Not sure if there's an elegant fix on the CodeSandbox side for handling package names that might be blocked by ad blockers. Maybe a CDN path that doesn't have the package name in the url? Maybe you have an idea. |
🐛 bug report
Description of the problem
I have the npm module
analytics
installed but I'm seeing the following error in a new React CodeSandbox.The only code I've added to the default React CodeSandbox is this in
src/index.js
:Link to sandbox: https://codesandbox.io/s/gracious-thompson-8730t
Your Environment
The text was updated successfully, but these errors were encountered: