-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
vuejs production cdn is not working https://unpkg.com/vue@3/dist/vue.global.prod.js #8287
Comments
This appears to be caused by mounting the app on the -<body id="app">
- <h1>Test vue</h1>
- {{title}}
+<body>
+ <div id="app">
+ <h1>Test vue</h1>
+ {{title}}
+ </div>
<script src="./app.js"></script>
</body> |
Just wanted to add that when using dev build there's appropriate warning in the console
however, [email protected] did not throw an error in the production build, while 3.3 does and it breaks previously working app. I'm not sure if this is intentional in 3.3 or a regression. Someone needs to take a look at it. |
I am very surprised that it actually worked !! I have been adding the id=app to the body for the past 3 years and it was working very good. Is there any negative effects if i used https://unpkg.com/vue@3/dist/vue.global.js instead of the .prod version ? Thank you so much it was very useful |
Hi @yyx990803 , Do not have any error, but VueApp is still crashed actually :( |
Vue version
3
Link to minimal reproduction
https://github.com/mashoun/vuejserror.git
Steps to reproduce
go to index.html then open with live server, the error is consoled :
vue.global.prod.js:1 Uncaught SyntaxError: 63 (at vue.global.prod.js:1:78062)
at Vi (vue.global.prod.js:1:78062)
at nu (vue.global.prod.js:1:119221)
at Array.cu (vue.global.prod.js:1:119590)
at zc (vue.global.prod.js:1:96277)
at vue.global.prod.js:1:96681
at zc (vue.global.prod.js:1:96691)
at Wc (vue.global.prod.js:1:95664)
at ja (vue.global.prod.js:1:117574)
at vue.global.prod.js:1:122203
at fu (vue.global.prod.js:1:122347)
What is expected?
if this simple vue app is not working then i am sure the error is from the vue cdn , also i tried to use the dev version as cdn it is also not working properly
HTML FILE :
app.js FILE
TEH ERROR
yesterday every thing was good but now all my clients project are down and returning the same error please help me
What is actually happening?
yesterday every thing was good but now all my clients project are down and returning the same error
System Info
No response
Any additional comments?
No response
The text was updated successfully, but these errors were encountered: