-
I created today a fresh Vue3 install with vue-router 4.3.0 and unplugin-vue-router 0.8.5 installed. Changed my vite.config.ts:
Changed my tsconfig.node.json:
And then, when I changed my import with:
I directly get this error : Module '"vue-router/auto"' has no exported member 'createRouter' Since I followed the doc, what did I miss here? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I'll put the answer here for anyone : you need to add the config to both tsconfig.node.json and tsconfig.app.json (might need to update the doc for those not used to ts config files like me) |
Beta Was this translation helpful? Give feedback.
-
It seems that there is no need to edit tsconfig.node.json |
Beta Was this translation helpful? Give feedback.
It seems that there is no need to edit tsconfig.node.json
I only configured tsconfig.app.json and it works for me