nuxt / bridge

🌉 Experience Nuxt 3 features on existing Nuxt 2 projects
MIT License
272 stars 30 forks source link

@nuxtjs/sentry package not working with nuxt bridge #63

Closed viktorkrepak closed 2 years ago

viktorkrepak commented 2 years ago

Environment

Nuxt CLI v3.0.0-27488730.0cbc9cb 21:04:04 21:04:05 Nuxt project info: 21:04:05


Reproduction

Just install the latest https://www.npmjs.com/package/@nuxtjs/sentry module, and add the module into nuxt.config and set up the initial config and then try to run the dev server.

Describe the bug

I've migrated from Nuxt2 to Nuxt bridge, and everything works smoothly, but nuxtjs sentry module isn't working. I get this error when starting dev server index.js:29 Uncaught TypeError: Cannot destructure property 'extends' of '_tslib_jsWEBPACK_IMPORTED_MODULE_0___default.a' as it is undefined.

Additional context

image

Logs

Uncaught TypeError: Cannot destructure property '__extends' of '_tslib_js__WEBPACK_IMPORTED_MODULE_0___default.a' as it is undefined.
    at eval (index.js:29:5)
    at Module../node_modules/tslib/modules/index.js (app.js:1661:1)
    at __webpack_require__ (runtime.js:854:30)
    at fn (runtime.js:151:20)
    at eval (index.js:3:63)
    at Module../node_modules/@sentry/browser/esm/index.js (app.js:239:1)
    at __webpack_require__ (runtime.js:854:30)
    at fn (runtime.js:151:20)
    at eval (sentry.client.js:6:73)
    at Module../.nuxt/sentry.client.js (app.js:334:1)
danielroe commented 2 years ago

Let's track in nuxt/bridge#25. (Check the issue for a workaround.)