Skip to content
This repository was archived by the owner on May 8, 2025. It is now read-only.

"Unexpected token error" with vue add vuetify #141

Closed
sarahLardeau opened this issue Dec 10, 2019 · 2 comments
Closed

"Unexpected token error" with vue add vuetify #141

sarahLardeau opened this issue Dec 10, 2019 · 2 comments
Labels

Comments

@sarahLardeau
Copy link

I encoutered an error on vue add vuetify command and managed to find a simple scenario to reproduce the issue.

Steps to reproduce :

  • Create a new vue project with @vue/cli-services: 4.1.1 with this config (basic with typescript) :
    image

  • Add the following code in main.ts
    Vue.config.errorHandler = (err: Error, vm: Vue, info: string) => { // For some crash tracking config like Sentry };
    image

  • Then run : vue add vuetify and select the default preset

You will see a nice parser error
image

If you remove the code added to main.ts it works perfectly ;)

@johnleider
Copy link
Member

I cannot reproduce this. Can you provide a repository?

@KaelWD
Copy link
Member

KaelWD commented Dec 18, 2019

Likely a bug with vue-cli itself: vuejs/vue-cli#4861

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants