[ERROR] No matching export in "node_modules/vue/dist/vue.runtime.esm-bundler.js" for import "default"
See original GitHub issueEnvironment
node: 16.15.1 (I’ve tried 16.14.2) npm: 8.11.0
Nuxt version: “nuxt”: “3.0.0-rc.3”, “@nuxtjs/composition-api”: “^0.32.0”,
Reproduction
Here is my minimal demo: https://codesandbox.io/s/busy-ride-0r9df8?file=/components/Button.vue
All my dependencies on package.json
Notice on Button.vue component and app.vue file. My project just have only two these files but I’m getting error 503 Server Unavailable
Describe the bug
✘ [ERROR] No matching export in "node_modules/vue/dist/vue.runtime.esm-bundler.js" for import "default"
node_modules/@nuxtjs/composition-api/dist/runtime/index.mjs:1:7:
1 │ import Vue from 'vue';
╵ ~~~
✘ [ERROR] No matching export in "node_modules/nuxt/dist/app/compat/capi.mjs" for import "default"
Can someone explain to me why I’m getting this bug?
Updated
I clean my code and add the button
Issue Analytics
- State:
- Created a year ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
No matching export for import "default" - vue.js - Stack Overflow
I tried deleting node-modules and re-installing the package multiple times. But the error remains. Any idea how to solve this? Using Vue3. vue....
Read more >no matching export in "node_modules/vue/dist/vue.runtime ...
X [ERROR] No matching export in "node_modules/vue/dist/vue.runtime.esm-bundler.js" for import "default" node_modules/vue-trix/dist/vue-trix.esm.js:1:7: 1 ...
Read more >Vue 3 + Vite 3 compatibility | Vue Forums - Syncfusion
✘ [ERROR] No matching export in "node_modules/.pnpm/vue@3.2.40/node_modules/vue/dist/vue.runtime.esm-bundler.js" for import "default" ...
Read more >Features | Vite
In this case, the processed CSS string is returned as the module's default export as usual, but the styles aren't injected to the...
Read more >vue-toastification - Bountysource
node_modules/vue-toastification/dist/index.mjs:329:44: error: No matching export in "node_modules/vue/dist/vue.runtime.esm-bundler.js" for import ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
thank you
Nuxt 3 is compatible with Vue 3 and Vite - that’s what it uses. Your error indicates you are trying to use some other library that is not compatible with Vue 3.