question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[ERROR] No matching export in "node_modules/vue/dist/vue.runtime.esm-bundler.js" for import "default"

See original GitHub issue

Environment

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

Screen Shot 2022-06-14 at 07 42 28

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"
Screen Shot 2022-06-13 at 23 26 42

Can someone explain to me why I’m getting this bug?

Updated

I clean my code and add the button

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Caesy707commented, Dec 6, 2022

thank you

0reactions
danielroecommented, Dec 6, 2022

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found