-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Build Error Could not resolve './{}.js' from node_modules/@sentry/utils/esm/index.js vuejs #5894
Comments
Hi, @ZohaibHunzai. Thanks for writing in. That is very strange. If you actually go look at that file in the published npm package, you'll see that |
#5773 mentions the exact same problem also using vite 🤔 |
Looks like this might be this: vitejs/vite#9720 @ZohaibHunzai - are you using the |
Perhaps this helps: #4473 (comment)? |
Nice! So that makes 3 separate reports (at least). I wonder if we should add a troubleshooting entry to our docs, at least for the platforms that use vite under the hood. (I mean, I know this is not really on us - it's really a vite issue, which could affect any library - but still. Wouldn't be that hard to point them to https://vitejs.dev/config/shared-options.html#define, with its big yellow warning.) |
Yeah good idea, we should add this to troubleshooting |
I think I've mentioned this before but we could also rename the local const |
Opened getsentry/sentry-docs#5616 as a docs PR |
Would it be possible to change the name of the We are using Faye (WebSocket library) that needs |
@henrikbjorn we can do this to unblock you, but I would let the Faye folks know that Vite themselves say that you shouldn't use
|
Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Which package are you using?
@sentry/vue
SDK Version
"@sentry/utils": "^7.14.1"
Framework Version
"vue": "^3.2.20",
Link to Sentry event
No response
Steps to Reproduce
Buiild Error Could not resolve './{}.js' from node_modules/@sentry/utils/esm/index.js
error during build:
Error: Could not resolve './{}.js' from node_modules/@sentry/utils/esm/index.js
Expected Result
Actual Result
The text was updated successfully, but these errors were encountered: