stackblitz / core

Online IDE powered by Visual Studio Code ⚡️
https://stackblitz.com
MIT License
10.22k stars 886 forks source link

can't work with vue-router #1980

Open hzjjg opened 2 years ago

hzjjg commented 2 years ago

I am try to use vue-router lib, and I had imported ESM module from vue-router/dist/vue-router.esm-bundler,

but when I use the member from the module, error "Unexpected token 'export'" occurred

you can find the demo at: https://stackblitz.com/edit/vue-un4z2l?file=src/router.js

Totati commented 1 year ago

There's a Vite Vue template under the Vite tab on the start new project screen.

HeyGarrison commented 7 months ago

@hzjjg I would definitely switching to using a Vite based starter. You can try one here: https://vite.new/vue