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

npm build fail with pinia v2.0.0 and vue2.6.14(@vue/composition-api 1.3.0) #841

Closed
SD-Gaming opened this issue Nov 2, 2021 · 4 comments
Closed

Comments

@SD-Gaming
Copy link

Reproduction
run 'npm run build', see error.

Expected behavior
build success

Actual behavior
build fail with error below:
node v16.13.0
npm 8.1.0
image
image
image
image

@edwardnyc
Copy link
Contributor

Looks like you used a property that vue2 doesn't exist @SD-Gaming

@SD-Gaming
Copy link
Author

Looks like you used a property that vue2 doesn't exist @SD-Gaming

Thank reply.
Yes, the direct error is from pinia, but the v1.3.0 is changed to .mjs, so I think maybe somebody would know this problem.

I found the reason is pinia wants to import vue-demi {DebuggerEvent, Plugin}, which should export from @vue/composition-api, but it isn't exported.

image

1635843017(1)

@edwardnyc
Copy link
Contributor

log @SD-Gaming

@SD-Gaming
Copy link
Author

Today I try to build, the error is gone.
Maybe restarting vscode could fix the problem. 😄
Thank everyone.

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

2 participants