Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[vite] Internal server error: Cannot read property 'url' of undefined #3285

Closed
6 tasks
17biubiu opened this issue May 6, 2021 · 1 comment · May be fixed by jaesub-ahn/vite#1
Closed
6 tasks

[vite] Internal server error: Cannot read property 'url' of undefined #3285

17biubiu opened this issue May 6, 2021 · 1 comment · May be fixed by jaesub-ahn/vite#1

Comments

@17biubiu
Copy link

17biubiu commented May 6, 2021

Describe the bug

when you use vue-router with vite, the url do not support '-', for example

import a from '../views/a-b/index.vue'

when you set the ab, it can work

Reproduction

System Info

Output of npx envinfo --system --npmPackages vite,@vitejs/plugin-vue --binaries --browsers:

Used package manager:

Logs


Before submitting the issue, please make sure you do the following

  • Read the Contributing Guidelines.
  • Read the docs.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Provide a description in this issue that describes the bug.
  • Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/vue-next instead.
  • Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
@github-actions
Copy link

github-actions bot commented May 6, 2021

Hello @17biubiu. Please provide a online reproduction by codesandbox or a minimal GitHub repository. Issues labeled by need reproduction will be closed if no activities in 3 days.

@github-actions github-actions bot locked and limited conversation to collaborators Jul 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants