Open
Description
Hi !
I'm currently unable to add the plugin to a project built with @vue/composition-api
and typescript
.
I get the following error after running vue add
:
ERROR SyntaxError: Unexpected token, expected "]" (23:19)
$ vue -V
@vue/cli 4.3.1
$ vue add vue-next
📦 Installing vue-cli-plugin-vue-next...
+ vue-cli-plugin-vue-next@0.1.2
updated 1 package and audited 949810 packages in 14.564s
92 packages are looking for funding
run `npm fund` for details
found 624 low severity vulnerabilities
run `npm audit fix` to fix them, or `npm audit` for details
✔ Successfully installed plugin: vue-cli-plugin-vue-next
🚀 Invoking generator for vue-cli-plugin-vue-next...
ERROR SyntaxError: Unexpected token, expected "]" (23:19)
SyntaxError: Unexpected token, expected "]" (23:19)
at Object._raise (/home/letik/.node_modules/lib/node_modules/@vue/cli/node_modules/@babel/parser/lib/index.js:742:17)
at Object.raiseWithData (/home/letik/.node_modules/lib/node_modules/@vue/cli/node_modules/@babel/parser/lib/index.js:735:17)
at Object.raise (/home/letik/.node_modules/lib/node_modules/@vue/cli/node_modules/@babel/parser/lib/index.js:729:17)
at Object.unexpected (/home/letik/.node_modules/lib/node_modules/@vue/cli/node_modules/@babel/parser/lib/index.js:8757:16)
at Object.expect (/home/letik/.node_modules/lib/node_modules/@vue/cli/node_modules/@babel/parser/lib/index.js:8743:28)
at Object.parsePropertyName (/home/letik/.node_modules/lib/node_modules/@vue/cli/node_modules/@babel/parser/lib/index.js:10546:12)
at Object.parsePropertyName (/home/letik/.node_modules/lib/node_modules/@vue/cli/node_modules/@babel/parser/lib/index.js:3022:23)
at Object.parseObjectMember (/home/letik/.node_modules/lib/node_modules/@vue/cli/node_modules/@babel/parser/lib/index.js:10451:10)
at Object.parseObj (/home/letik/.node_modules/lib/node_modules/@vue/cli/node_modules/@babel/parser/lib/index.js:10374:25)
at Object.parseExprAtom (/home/letik/.node_modules/lib/node_modules/@vue/cli/node_modules/@babel/parser/lib/index.js:9995:28)
Here's the reproduction repo :
https://github.com/Ircam-Web/timeside-player/tree/7b3e110a1d7839e3a721953a0a08876c7f290fdd
Is it somehow related to Typescript ? I know it is not supported yet but I've seen it can be run in the following issue #7
Thanks for this tool :)
Activity
[-]Unexpected token when on vue add[/-][+]Unexpected token when running vue add[/+]lmiller1990 commentedon May 22, 2020
Me too:
eni9889 commentedon Jun 7, 2020
Same for me as well.
VottusCode commentedon Aug 26, 2020
I have the exact same issue.
My current dependencies:

Output:

haoqunjiang commentedon Aug 27, 2020
@VottusCode With Vue CLI 4.5, you don't need this plugin anymore.
VottusCode commentedon Aug 31, 2020
I wanted to update an existing application to Vue 3.
Nevermind that, even with Vue CLI 4.5, with
vue create
it still installs Vue 2.6.12 without the option to use Vue 3.And yes, I do have the latest version of Vue CLI globally installed.

lmiller1990 commentedon Aug 31, 2020
I have the Vue 3 option with 4.5.0 ("choose vue version")