We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug Can't import the named export 'getCurrentInstance' from non EcmaScript module (only default export is available)
To Reproduce I use in project Nuxt 2.17.0, Vue 2.7.14, NodeJs 18.15
Environment:
The text was updated successfully, but these errors were encountered:
Solution for for NuxtJS:
// nuxt.config.js export default { build: { extend(config) { config.module.rules.push({ test: /\.mjs$/, include: /node_modules/, type: 'javascript/auto', }) }, }, }
Solution for for Vue2:
// vue.config.js module.exports = { configureWebpack: { module: { rules: [ { test: /\.mjs$/, include: /node_modules/, type: "javascript/auto" } ] } } }
Sorry, something went wrong.
related links: vuejs/pinia#675
vueuse/vue-demi#171
@uNmAnNeR check exports here to help a bundler: https://github.com/vuejs/pinia/blob/v2/packages/pinia/package.json
exports
should be fixed in v7.1.1
No branches or pull requests
Describe the bug
Can't import the named export 'getCurrentInstance' from non EcmaScript module (only default export is available)
To Reproduce
I use in project Nuxt 2.17.0, Vue 2.7.14, NodeJs 18.15
Environment:
The text was updated successfully, but these errors were encountered: