-
-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot destructure property '__extends' of '_tslib_js__WEBPACK_IMPORTED_MODULE_0___default' #25
Comments
I'm closing this as there is no reproduction. Feel free to comment with one and I'll reopen! |
@danielroe Here is a code sandbox with just nuxt-bridge, graphql and graphql-tag. This error also happens on a nuxt3 project but that can be worked around by using the following in the nuxt.config
However that same solution doesn't seem to work in nuxt-bridge |
If you're encountering this on Bridge, you can try this workaround: import { defineNuxtConfig } from '@nuxt/bridge'
export default defineNuxtConfig({
alias: {
tslib: 'tslib/tslib.es6.js'
}
}) The issue is an upstream one with libraries like |
Seems to work :) Thanks ! |
@danielroe thank you for the workaround! <3 Would you mind linking the upstream issue you mentioned? 🙏 |
The issue is summarised at https://v3.nuxtjs.org/concepts/esm/ |
Seems work for me as well, previously had issue with nuxtjs/sentry package. Thank you! |
The solution works like charm 🚀 |
@danielroe the link seems to be not working |
It is now https://nuxt.com/docs/guide/concepts/esm. |
Environment
Nuxt CLI v3.0.0-27242401.39ed77e 16:23:30
RootDir: D:\Documents\Office\Gistlens\Telecompaper\front-end 16:23:30
Nuxt project info: 16:23:30
Windows_NT
v16.11.0
2.16.0-27226092.034b9901
Yarn
Webpack
target
,telemetry
,env
,publicRuntimeConfig
,privateRuntimeConfig
,head
,css
,alias
,loadingIndicator
,plugins
,components
,buildModules
,modules
,nuxt-buefy
,axios
,dayjs
,pwa
,i18n
,apollo
,build
,generate
- Runtime Modules:nuxt-buefy@0.4.10
,@nuxtjs/axios@5.13.6
,@nuxtjs/pwa@3.3.5
,nuxt-i18n@6.28.1
,@nuxtjs/apollo@4.0.1-rc.5
,@nuxtjs/dayjs@1.4.0
@nuxtjs/eslint-module@3.0.2
,@nuxtjs/stylelint-module@4.0.0
,@nuxt/bridge@3.0.0-27242401.39ed77e
Describe the bug
It throws this error in the console. Compile and build not showing any error
Removing defineNuxtConfig or adding
bridge: false
removes the error.Reproduction
package.json
nuxt.config.js
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: