Uh oh!
There was an error while loading. Please reload this page.
Should the sentry/nuxt version have an impact on the nuxt build command's output? #14064
I'd like to know if I'm even barking up the right tree. This stuff goes a bit above my head, but I think I found the cause (though I don't understand it). After upgrading from As an example, when running .output/server/index.mjs (8.34.0) importprocessfrom'node:process';globalThis._importMeta_={url:import.meta.url,env:process.env};;!function(){try{vare="undefined"!="undefined"?window:"undefined"!=typeofglobal?global:"undefined"!=typeofself?self:{},n=(newe.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="46baedab-cac0-4734-adf3-d022721db3a9",e._sentryDebugIdIdentifier="sentry-dbid-46baedab-cac0-4734-adf3-d022721db3a9")}catch(e){}}();import'firebase-functions/v2/https';export{Basserver}from'./chunks/runtime.mjs';import'node:http';import'node:https';import'node:fs';import'node:path';import'@sentry/node';import'@sentry/core';import'@sentry/utils';import'@primevue/core/base/style';import'firebase-admin/auth';import'vuefire/server';import'consola/core';//# sourceMappingURL=index.mjs.map.output/server/index.mjs (8.35.0) importprocessfrom"node:process";globalThis._importMeta_={url: import.meta.url,env: process.env};!(function(){try{vare="undefined"!="undefined"
? window
: "undefined"!=typeofglobal
? global
: "undefined"!=typeofself
? self
: {},n=newe.Error().stack;n&&((e._sentryDebugIds=e._sentryDebugIds||{}),(e._sentryDebugIds[n]="43aa2bdc-7ac0-4400-93e4-8447ceda11fe"),(e._sentryDebugIdIdentifier="sentry-dbid-43aa2bdc-7ac0-4400-93e4-8447ceda11fe"));}catch(e){}})();import*asSentryfrom"@sentry/nuxt";import"import-in-the-middle/hook.mjs";// proceeds to include my entire package.json as javascript **import("./chunks/runtime.mjs").then(function(n){returnn.B;});asyncfunctionreExport(...args){constres=awaitimport("./chunks/runtime.mjs").then(function(n){returnn.B;});returnres.server.call(this, ...args);}export{reExportasserver}; |
Replies: 4 comments 2 replies
@s1gr1d seems like we also need to proxy |
In 8.34.0, a rollup plugin was introduced to initialize Sentry before the rest of the app is loaded. This changes the code in However, the function for firebase is currently not exported. #14086 will fix this. Thanks for reporting! |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hi @s1gr1d I can confirm that 8.36.0 fixed the above issue. Today, however, after upgrading to 8.43.0 I noticed a regression for this. From my testing it seems like the issue was re-introduced in 8.38.0 (8.37.1 is the latest version that still seems to build |
Hy, there were a couple of issues with the newly added rollup plugin which adds the dynamic import. Currently, we are not going forward with this option. Please install version |
Hy, there were a couple of issues with the newly added rollup plugin which adds the dynamic import. Currently, we are not going forward with this option.
Please install version
8.45.0(or higher) and follow the Installation Methods in the docs. You probably have to use top-level import on firebase.