Title: Sentry for Nextjs messes up the build process · Issue #6472 · getsentry/sentry-javascript · GitHub
Open Graph Title: Sentry for Nextjs messes up the build process · Issue #6472 · getsentry/sentry-javascript
X Title: Sentry for Nextjs messes up the build process · Issue #6472 · getsentry/sentry-javascript
Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using the latest SDK release https://github.com/...
Open Graph Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th...
X Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/6472
X: @github
Domain: github.com
IPv4 address: 140.82.112.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Sentry for Nextjs messes up the build process","articleBody":"### Is there an existing issue for this?\r\n\r\n- [X] I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues\r\n- [X] I have reviewed the documentation https://docs.sentry.io/\r\n- [X] I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases\r\n\r\n### How do you use Sentry?\r\n\r\nSentry Saas (sentry.io)\r\n\r\n### Which package are you using?\r\n\r\n@sentry/nextjs\r\n\r\n### SDK Version\r\n\r\n7.24.1\r\n\r\n### Framework Version\r\n\r\nNextjs v12.3.1\r\n\r\n### Link to Sentry event\r\n\r\n_No response_\r\n\r\n### Steps to Reproduce\r\n\r\nI'm using Rive for animations, and in order to not download their runtime (wasm) from the CDN, I use the following [article](https://pixelpoint.io/blog/rive-react-optimizations/) methodology. The gist of it is the following webpack config in `next.config`:\r\n\r\n```js\r\nmodule.exports = {\r\n webpack: (config, options) => {\r\n config.module.rules.push({\r\n test: /\\.wasm$/,\r\n use: ['url-loader'],\r\n });\r\n\r\n return config;\r\n },\r\n};\r\n```\r\n\r\nWhen I updated sentry to the latest version (7.24.1) `next build` gives the following error:\r\n\r\n```\r\nweb:build: Failed to compile.\r\nweb:build: \r\nweb:build: ./node_modules/@rive-app/canvas/rive.wasm\r\nweb:build: Module parse failed: Unexpected character '' (1:0)\r\nweb:build: The module seem to be a WebAssembly module, but module is not flagged as WebAssembly module for webpack.\r\nweb:build: BREAKING CHANGE: Since webpack 5 WebAssembly is not enabled by default and flagged as experimental feature.\r\nweb:build: You need to enable one of the WebAssembly experiments via 'experiments.asyncWebAssembly: true' (based on async modules) or 'experiments.syncWebAssembly: true' (like webpack 4, deprecated).\r\nweb:build: For files that transpile to WebAssembly, make sure to set the module type in the 'module.rules' section of the config (e. g. 'type: \"webassembly/async\"').\r\nweb:build: (Source code omitted for this binary file)\r\n```\r\n\r\nSince everything worked as expected with 7.16.0, I downgraded back and there was no build error. I am not able to further narrow down the version in which this error appears atm.\r\n\r\n### Expected Result\r\n\r\nSentry shouldn't mess with the rest of my build process, the url-loader for the Rive runtime shouldn't error in the build.\r\n\r\n### Actual Result\r\n\r\nNo build error.","author":{"url":"https://github.com/filipjakov","@type":"Person","name":"filipjakov"},"datePublished":"2022-12-08T09:45:02Z","url":"https://github.com/getsentry/sentry-javascript/issues/6472"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:56a6416d-ab60-4c68-ffc9-db3cf3c311ff |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8EFE:2815D1:280F05:376404:6B04694A |
| html-safe-nonce | 0e49078c8b69ca6544ead53196ca073a2c6ea829e5e2964eb469e61b291ff7b5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RUZFOjI4MTVEMToyODBGMDU6Mzc2NDA0OjZCMDQ2OTRBIiwidmlzaXRvcl9pZCI6IjYyNjA4Mzg2NjYwMDA5NTE2MjYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 29dee4fa21f8d69101e6503eef5ae25d3b9fdd5ffcf9ca82f921902b09abf55d |
| hovercard-subject-tag | issue:1484189214 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-javascript/6472/issue_layout |
| twitter:image | https://opengraph.githubassets.com/71b7510777c763d6eed49e3862b75bc73931cce3434c152e6c686e3bf2e62118/getsentry/sentry-javascript/issues/6472 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/71b7510777c763d6eed49e3862b75bc73931cce3434c152e6c686e3bf2e62118/getsentry/sentry-javascript/issues/6472 |
| og:image:alt | Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | filipjakov |
| hostname | github.com |
| expected-hostname | github.com |
| None | 83e4c0e58c5162177f3c161c5fbad38527ae04c11ac14980f9f9d85ae2027b1f |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-javascript git https://github.com/getsentry/sentry-javascript.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 3328572 |
| octolytics-dimension-repository_nwo | getsentry/sentry-javascript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3328572 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-javascript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | ca4d07a7cef4e4b75f821dc25e7300d80c1450a9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width