Skip to content
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

The requested module 'vue' does not provide an export named 'default' #61

Open
5 tasks done
AndrewBogdanovTSS opened this issue Sep 25, 2022 · 7 comments
Open
5 tasks done

Comments

@AndrewBogdanovTSS
Copy link

Describe the bug

The current state of the repo is broken with the error:

The requested module 'vue' does not provide an export named 'default'

at ModuleJob._instantiate (node:internal/modules/esm/module_job:123:21)
at async ModuleJob.run (node:internal/modules/esm/module_job:189:5)
at async Promise.all (index 0)
at async ESMLoader.import (node:internal/modules/esm/loader:527:24)

Reproduction

https://stackblitz.com/github/antfu/vitesse-nuxt3

System Info

OS: Windows 10 10.0.19044
    CPU: (12) x64 Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz
    Memory: 15.85 GB / 31.90 GB
  Binaries:
    Node: 16.14.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.17 - C:\Program Files\nodejs\yarn.CMD
    npm: 8.3.1 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Spartan (44.19041.1266.0), Chromium (105.0.1343.50)
    Internet Explorer: 11.0.19041.1566

Used Package Manager

pnpm

Validations

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.
@yufanzheng0723
Copy link
Contributor

Hi, I don't know if you used auto-import, the last time I reported this error was because there was something wrong with this auto-import

@yufanzheng0723
Copy link
Contributor

If you use a component library, such as element-plus, and use auto-import, you can check if the component is not imported successfully

@AndrewBogdanovTSS
Copy link
Author

@yufanzheng0723 I provided a repo that you can check what exact libs and settings I use.

@Axing-nxr
Copy link

solved?

@sgaconsultores
Copy link

Any news? I have this error in a fresh cloned project after npm install

`> postinstall

nuxt prepare

Nuxi 3.5.0 6:35:08 PM

ERROR The requested module 'vue' does not provide an export named 'computed' 6:35:09 PM

import { getCurrentInstance, inject, onUnmounted, onDeactivated, onActivated, computed, unref, watchEffect, defineComponent, reactive, h, provide, ref, watch, shallowRef, nextTick } from 'vue';
^^^^^^^^
SyntaxError: The requested module 'vue' does not provide an export named 'computed'
at ModuleJob._instantiate (node:internal/modules/esm/module_job:124:21)
at async ModuleJob.run (node:internal/modules/esm/module_job:190:5)
`

@g1ronn1mo
Copy link

Try pnpm instead

@antfu
Copy link
Member

antfu commented Aug 6, 2023

Is this problem still reproducible?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants