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 run build is throwing error for vue application. #8

Closed
ashutoshSce opened this issue Jul 20, 2020 · 1 comment
Closed

npm run build is throwing error for vue application. #8

ashutoshSce opened this issue Jul 20, 2020 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@ashutoshSce
Copy link

[BABEL] single-spa-auth-app/src/singleSpaEntry.js: No "exports" main resolved in single-spa-auth-app/node_modules/@babel/helper-compilation-targets/package.json (While processing: "single-spa-auth-app/node_modules/@vue/cli-plugin-babel/preset.js")

m i missing something?

jualoppaz added a commit that referenced this issue Jul 22, 2020
jualoppaz added a commit that referenced this issue Jul 22, 2020
@jualoppaz jualoppaz self-assigned this Jul 22, 2020
@jualoppaz jualoppaz added the bug Something isn't working label Jul 22, 2020
@jualoppaz
Copy link
Owner

jualoppaz commented Jul 22, 2020

Hi @ashutoshSce ! Thank you so much for reporting this error!

After a quick view I could see this issue: babel/babel#11216 . This error is produced by new node versions in its way of exporting modules, as you can see in referenced issue in nodejs/node#32107.

However, there is a quick fix for this which consist on update package-lock.json file with all tree dependencies updated as says @BassemN here. I have just fix this error in new v0.1.3 version. Updating package-lock.json file updated also @babel/helper-compilation-targets version as you can see here.

With this fix this error may dissappear ;)

@jualoppaz jualoppaz pinned this issue Jul 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants