-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
[Bug report] Can not load file without extname in public folder #1364
Comments
2.0.0-beta.5 也有这个问题 |
This is expected behavior. Everything in Also, files inside |
Thank you for your answer. I read the description of vite docs.
I use face-api.js by vite. So I put the model under
For example: .
├── ssd_mobilenetv1_model-shard1
├── ssd_mobilenetv1_model-shard2
└── ssd_mobilenetv1_model-weights_manifest.json Should an option be provided for users to decide whether to allow access to files without extname? |
If the lib is trying to load extension-less files under |
I create a demo project vite-bug-report-1364. The detailed steps are described in the README. |
This is fixed in a7bca9c |
Describe the bug
When i upgrade vite from
v1.0.0-rc.13
tov2.0.0-beta.4
, i can not load file (without extname) inpublic
folder.For example, i can not load file called
abc
, but i can load the same file calledabc.data
.4:01:26 PM [vite] Internal server error: Error: Failed to load url /weights/ssd_mobilenetv1_model-shard1. Does the file exist? at transformRequest (/Users/yunyou/github/lab/vtuber/node_modules/vite/dist/node/chunks/dep-d7654bd1.js:67089:15)
Reproduction
Just create a file called
test
and a file calledtest.json
inpublic
folder, then ask it.System Info
vite
version: v2.0.0-beta.4The text was updated successfully, but these errors were encountered: