Skip to content

How to use it in Astro project (The requested module 'vue-router/auto-routes' does not provide an export named 'routes') #660

Closed Answered by kathirr007
kathirr007 asked this question in Questions and Help
Discussion options

You must be logged in to vote

Fixed it by updating main.ts like below:

No change in astro.config.mjs

Instead of importing name import routes from vue-router/auto-routes, I've imported all of them as universal import.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@kathirr007
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by kathirr007
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant
Converted from issue

This discussion was converted from issue #658 on June 18, 2025 20:53.