question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug report] Can not load file without extname in public folder

See original GitHub issue

Describe 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:closed
  • Created 3 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
yyx990803commented, Jan 7, 2021

This is fixed in a7bca9c

0reactions
YunYouJuncommented, Jan 6, 2021

I create a demo project vite-bug-report-1364. The detailed steps are described in the README.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found