Skip to content
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 failed because of webpack errors #2482

Open
maazrehman1 opened this issue Aug 26, 2022 · 2 comments
Open

Build failed because of webpack errors #2482

maazrehman1 opened this issue Aug 26, 2022 · 2 comments

Comments

@maazrehman1
Copy link

hey there,
i have started using sentry for app monitoring few days ago and after configuration i am unable to create a local build.

Build error occurred
Error: > Build failed because of webpack errors
at /Users/macbookair/Desktop/projects/(my project name)/node_modules/next/dist/build/index.js:397:19
at async Span.traceAsyncFn (/Users/macbookair/Desktop/projects/(my project name)/node_modules/next/dist/telemetry/trace/trace.js:60:20)
at async Object.build [as default] (/Users/macbookair/Desktop/projects/(my project name)/node_modules/next/dist/build/index.js:77:25)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build: NODE_ENV=production NEXT_PUBLIC_APP_ENV=Z next build --debug
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

sentry: {
disableServerWebpackPlugin: true,
disableClientWebpackPlugin: true,
},
when i disable the sentry webpack plugin options the build gets successfully created but i couldnt get source maps on sentry dashboard

@maazrehman1 maazrehman1 changed the title sentry webpack error (project not found) Build failed because of webpack errors Aug 26, 2022
@coderdix24
Copy link

Dealing with the same issue

@0asaca0rum0
Copy link

yes me too ,any one can help?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants