Skip to content

Error compiling freshly created field in nova 4 #4549

Closed Answered by crynobone
nouce asked this question in Q&A
Discussion options

You must be logged in to vote

After some additional research, this is due to vue-loader trying to use require('vue/compiler-sfc') insteads of require('@vue/compiler-sfc') which is required directly in the template. https://github.com/vuejs/vue-loader/blob/6a293dff5f2ed3167eb3b448f1d714091185a44e/src/compiler.ts#L12-L25

This can be solved by adding the following:

npm uninstall "@vue/compiler-sfc"
npm install -D "vue"

Example: nova-issues/issue-4595@e56d8af

There could be side-effect on requiring vue directly (the generated dist are slightly larger with more code) but I can't find any error at the moment. Best to first try with npm run dev and tests it out before using npm run prod.

Replies: 21 comments 10 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@nouce
Comment options

Comment options

You must be logged in to vote
4 replies
@itrack
Comment options

@nouce
Comment options

@metadeck
Comment options

@WillyReyno
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@RomainFon
Comment options

@CodeWithDennis
Comment options

@msassa
Comment options

@5aa5
Comment options

Answer selected by crynobone
Comment options

You must be logged in to vote
1 reply
@HeadStudios
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
Converted from issue

This discussion was converted from issue #4531 on July 08, 2022 13:34.