Open xneworlds opened 1 year ago
Also seeing this when including @sentry/vite-plugin.
Ended up same with trying to publish source maps to Sentry. @xneworlds have you had success with this?
Ended up same with trying to publish source maps to Sentry. @xneworlds have you had success with this?
I was unable to solve the problem through the plugin, but I achieved my goal by manually uploading source maps using sentry-cli.
I'm also getting this error while setting this in my Vite config:
build: {
rollupOptions: {
output: {
inlineDynamicImports: true,
},
}
},
vite v2.9.15 building for production...
✓ 383 modules transformed.
[crx:manifest-post] Unexpected token o in JSON at position 0
error during build:
SyntaxError: Unexpected token o in JSON at position 0
at JSON.parse (<anonymous>)
at Object.decodeManifest (file:///<project>/node_modules/.pnpm/@crxjs+vite-plugin@1.0.14_vite@2.9.15/node_modules/@crxjs/vite-plugin/dist/index.mjs:93:21)
at Object.generateBundle (file:///<project>/node_modules/.pnpm/@crxjs+vite-plugin@1.0.14_vite@2.9.15/node_modules/@crxjs/vite-plugin/dist/index.mjs:2909:40)
at /<project>/node_modules/.pnpm/rollup@2.72.1/node_modules/rollup/dist/shared/rollup.js:22834:37
Build tool
Vite
Where do you see the problem?
Describe the bug
When using both
@sentry/vite-plugin
and@crxjs/vite-plugin
at the same time, the error occurs during build. If@sentry/vite-plugin
is disabled, there will be no error.Reproduction
Because the sentry configuration involves sensitive information, reproduction cannot be provided.
Logs
System Info
Severity
blocking all usage of RPCE