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-demi' does not provide an export named 'computed' #238

Closed
xupeng-faker opened this issue Jun 6, 2023 · 3 comments

Comments

@xupeng-faker
Copy link

When I build with vitepress, get error

/node_modules/@vueuse/shared/index.mjs:1
import { shallowRef, watchEffect, readonly, unref, ref, isVue3, version, watch, customRef, getCurrentScope, onScopeDispose, effectScope, provide, inject, isRef, computed, reactive, toRefs as toRefs$1, toRef, isVue2, set as set$1, getCurrentInstance, onBeforeMount, nextTick, onBeforeUnmount, onMounted, onUnmounted, isReactive } from 'vue-demi';
^^^^^^^^
SyntaxError: The requested module 'vue-demi' does not provide an export named 'computed'
at ModuleJob._instantiate (node:internal/modules/esm/module_job:121:21)
at async ModuleJob.run (node:internal/modules/esm/module_job:171:5)

Remote
System : Linux *86
node : v16.1.0
npm: 8.0.0

but I don't have this problem on my local window system

local :
system : window10
node:14.19.1
npm: 6.14.16

@agulado
Copy link

agulado commented Jun 9, 2023

I have a same question on centos 7, and don't have it on my local macbookpro that os version is 13.3.1

@antfu
Copy link
Member

antfu commented Jun 9, 2023

We temporarily close this due to the lack of enough information.
Please provide a minimal reproduction to reopen the issue.
Thanks.

Why reproduction is required

@antfu antfu closed this as completed Jun 9, 2023
@agulado
Copy link

agulado commented Jun 12, 2023

I have a same question on centos 7, and don't have it on my local macbookpro that os version is 13.3.1

I have solved my question, the reason is the version of npm on my docker is 6.x, and it became normal after I upgrade npm to 8.x.

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

3 participants