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

VueRouter 3.6.0 cannot be used via CDN #3772

Closed
fimion opened this issue Aug 22, 2022 · 3 comments
Closed

VueRouter 3.6.0 cannot be used via CDN #3772

fimion opened this issue Aug 22, 2022 · 3 comments
Labels

Comments

@fimion
Copy link

fimion commented Aug 22, 2022

Version

3.6.0

Reproduction link

codepen.io/fimion/pen/VwXRxgM

Steps to reproduce

Attempt to use VueRouter 3.6.0 via CDN

It will error before your code can run.

What is expected?

to not error

What is actually happening?

something is going wrong in the Vue.use statement that is causing it to error out as best as I can tell


I have created a codepen showing the same app working with 3.5.4: https://codepen.io/fimion/pen/WNzmyvq

@kotslee
Copy link

kotslee commented Aug 22, 2022

I have the same error when running as a webpack bundle. Error on line 2 of the following code:

import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

@MrJxy
Copy link

MrJxy commented Aug 23, 2022

I meet the same error.
vue: 2.7.9 (from CDN)
vue-router: 3.6.0

Error will disappear when I downgrade to [email protected].

@imloama
Copy link

imloama commented Aug 23, 2022

I got an error after deploy our system.
Downgrade to [email protected] and works.
Our system use nuxtjs framework.
image
image

@posva posva added the bug label Aug 23, 2022
@posva posva closed this as completed in 0126bcb Aug 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants