[Bug report] Can not load file without extname in public folder
See original GitHub issueDescribe the bug
When i upgrade vite from v1.0.0-rc.13
to v2.0.0-beta.4
, i can not load file (without extname) in public
folder.
For example, i can not load file called abc
, but i can load the same file called abc.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 called test.json
in public
folder, then ask it.
System Info
- required
vite
version: v2.0.0-beta.4 - required Operating System: macOS 11.1
- required Node version: v12.14.1
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (5 by maintainers)
Top Results From Across the Web
node.js - ENOENT: no such file or directory .? - Stack Overflow
My problem is the file does not get created because Windows does not accept filenames with colon (':') on it. My solution is...
Read more >40787 - Local files doesn't load with Ajax - chromium - Monorail
I can access a .txt file from Google Documents, say, but not if I am offline, programmatically from my browser, unless I go...
Read more >Mastering the Node.js path module - LogRocket Blog
Learn the common patterns when using the Node.js path module for file system paths and when you shouldn't manipulate paths into strings.
Read more >Class: File (Ruby 2.6.3)
Returns the change time for the named file (the time at which directory information about the file was changed, not the file itself)....
Read more >ECMAScript modules | Node.js v19.3.0 Documentation
CORS is never checked on the destination server; Cannot load non-network ... Including the file extension is only necessary for packages without an ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This is fixed in a7bca9c
I create a demo project vite-bug-report-1364. The detailed steps are described in the README.