-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
vue-template-compiler throws with v3.0.0-alpha.4 #670
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
Comments
@yyx990803 I opened the issue in this repo for visibility, but maybe you prefer it in |
I think this is an issue that should be fixed in |
Thx for the feedback, I opened vuejs/vue-cli-plugin-vue-next#5 to track it |
Version
3.0.0-alpha.4
Reproduction link
https://github.com/cexbrayat/vtc-repro
Steps to reproduce
This is a simple app created with the CLI, using the vue-next and the TS plugins:
The first commit sets the version to Vue
3.0.0-alpha.3
and,after fixing the component created, running
yarn build
succeeds.The second commit bumps Vue to
3.0.0-alpha.4
.When running
yarn build
, the command now throws:After spending some time investigating the issue, I think I've found the root cause.
vue-template-compiler
starts by checking that the Vue version is the correct one.So when using with Vue
3.0.0-alpha.4
, we do have this error thrown.Why is there no error with Vue
3.0.0-alpha.3
? Because this line fails when trying to retrieve Vue version withReferenceError: document is not defined
. So the version returned isundefined
and the check is OK.Now that the
document is not defined
error has been fixed inalpha.4
, the check retreives the proper version and fails.What is expected?
yarn build
should not throwWhat is actually happening?
yarn build
throwsThe text was updated successfully, but these errors were encountered: