Title: Find approach that doesn't write to disk in Next.js SDK `proxyLoader` · Issue #5944 · getsentry/sentry-javascript · GitHub
Open Graph Title: Find approach that doesn't write to disk in Next.js SDK `proxyLoader` · Issue #5944 · getsentry/sentry-javascript
X Title: Find approach that doesn't write to disk in Next.js SDK `proxyLoader` · Issue #5944 · getsentry/sentry-javascript
Description: Discussed in #5943 Originally posted by eggplants October 13, 2022 proxyLoader creates src/pages/temp***.js. It causes the following error in my nextjs project on Docker: ModuleBuildError: Module build failed (from ./node_modules/@sentry...
Open Graph Description: Discussed in #5943 Originally posted by eggplants October 13, 2022 proxyLoader creates src/pages/temp***.js. It causes the following error in my nextjs project on Docker: ModuleBuildError: Module b...
X Description: Discussed in #5943 Originally posted by eggplants October 13, 2022 proxyLoader creates src/pages/temp***.js. It causes the following error in my nextjs project on Docker: ModuleBuildError: Module b...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/5944
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Find approach that doesn't write to disk in Next.js SDK `proxyLoader`","articleBody":"### Discussed in https://github.com/getsentry/sentry-javascript/discussions/5943\r\n\r\n\u003cdiv type='discussions-op-text'>\r\n\r\n\u003csup>Originally posted by **eggplants** October 13, 2022\u003c/sup>\r\n`proxyLoader` [creates](https://github.com/getsentry/sentry-javascript/blob/7e03836d4859b28f52c01a06dd4bc2f20ea849c6/packages/nextjs/src/config/loaders/proxyLoader.ts#L64-L66) `src/pages/temp***.js`. It causes the following error in my nextjs project on Docker:\r\n\r\n```\r\nModuleBuildError: Module build failed (from ./node_modules/@sentry/nextjs/cjs/config/loaders/proxyLoader.js):\r\nError: EROFS: read-only file system, open '/app/src/pages/temp0.5575603336148998.js'\r\n at Object.openSync (node:fs:585:3)\r\n at Object.writeFileSync (node:fs:2170:35)\r\n at Object.proxyLoader (/app/node_modules/@sentry/nextjs/cjs/config/loaders/proxyLoader.js:68:17)\r\n```\r\n\r\nCurrent only workaround is to set `autoInstrumentServerFunctions: false`. Is there any other way?\r\n\r\n(`@sentry/nextjs`: 7.15.0, `next`: 12.3.1)\u003c/div>","author":{"url":"https://github.com/AbhiPrasad","@type":"Person","name":"AbhiPrasad"},"datePublished":"2022-10-13T07:29:07Z","url":"https://github.com/getsentry/sentry-javascript/issues/5944"}
| 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:4836ed68-268f-8cc4-91c3-53e20d336299 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C09C:1CEC4E:B36B6:FA7CB:6B043149 |
| html-safe-nonce | 6b35c89d2f694581e3dc311974289ad8dd5b3f2509208ae60522591686390419 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMDlDOjFDRUM0RTpCMzZCNjpGQTdDQjo2QjA0MzE0OSIsInZpc2l0b3JfaWQiOiIxNTIyODg0NzUzNzE0NTkwMDI1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | bbb9ddf0e6327f741387e773e1a23c48089f995d35246ee8464846db000a6b5a |
| hovercard-subject-tag | issue:1407290290 |
| 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/5944/issue_layout |
| twitter:image | https://opengraph.githubassets.com/acebf94dfa6a1af454052179e37b5a74bb42e3d52fafb6c7afbcdd42f1ce2ed0/getsentry/sentry-javascript/issues/5944 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/acebf94dfa6a1af454052179e37b5a74bb42e3d52fafb6c7afbcdd42f1ce2ed0/getsentry/sentry-javascript/issues/5944 |
| og:image:alt | Discussed in #5943 Originally posted by eggplants October 13, 2022 proxyLoader creates src/pages/temp***.js. It causes the following error in my nextjs project on Docker: ModuleBuildError: Module b... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | AbhiPrasad |
| hostname | github.com |
| expected-hostname | github.com |
| None | b7a1d2b9101496921b08579fbee988d014345aef2f5bd660d1f8c7332d81560e |
| 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 | c3dd496c3da6ea6b77e69c09279d2b81604654f1 |
| 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