Comments (8)
i can confirm that. 2.4.2 is working as expected
update: sorry for that misunderstanding. I tried @DcsMarcRemolt suggestion and downgraded to 2.4.0. And 2.4.0 is working as expected, NOT 2.4.2
from serve.
from serve.
🤔
Could this be related to the recent change of the package behind name serve
- this is the old package. The package name is now owned by a different group of people (@zeit - us) and we added a different content to it.
According to the semver spec, we incremented the major version number... So serve
1.4.0 probably contains the serve you were looking for
from serve.
Thanks for your effort in collecting these details, @jamo! But --single
is actually a flag that we introduced. Because of that, I guess we should fix it and check if the dir exists.
from serve.
I just ran into this issue i guess.
serving a SPA with serve
, where directly opening http://example.org/suburl results in a error 500.
@rase- sent me the server error:
Error: ENOENT: no such file or directory, stat "/home/app/dist/suburl"
from serve.
I encounter the same issue: version 2.4.2 breaks, but 2.4.0 works for me with a SPA and the -s flag.
So this should have nothing to do with the v1 -> v2 change.
from serve.
@littleStudent I don't see it working and looking at the latest PRs, nothing touched this code. :-\
from serve.
Confirm that it does not work in 2.4.2
. To be clear, my definition of "not working" is that any non-index page will result in Internal Server Error
on its initial load.
http://localhost:60007/ # works
http://localhost:60007/blog # does not
http://localhost:60007/blog/article1 # does not
Additionally, the console stack is this:
Error: ENOENT: no such file or directory, stat '/Users/lukee/repos/oss/inferno/inferno-starter/dist/blog/article1'
at Error (native)
from serve.
Related Issues (20)
- CORS missing Access-Control-Allow-Methods
- Remove auto redirect
- Set server timezone to UTC
- Directory or file name with "#" or "?" does not work properly
- Do not serve hidden subfolders
- Restore silent mode HOT 2
- `npx serve` throws ENOENT error in [email protected] and newer HOT 1
- serve 14.2.1 CLI arguments issue http to https
- Testing local deployments for GitHub pages doesn't work since no `basePath` can be set HOT 6
- Add cleanUrls option to CLI interface
- IPV6 support
- Publish types for API with npm release
- Node.js 21: "[DEP0040] DeprecationWarning: The `punycode` module is deprecated." HOT 4
- serve didn't work in routing with react-router and vite in production HOT 1
- add --open to the CLI
- Anyway to run npx serve constantly? HOT 3
- `localhost:1234/foo/index.html.html` provokes a 404
- Add a file size limit to etag SHA calculations, fallback to "Last modified" when above this limit.
- Authentication is not available HOT 1
- Node.js 22: "[DEP0040] DeprecationWarning: The `punycode` module is deprecated."
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from serve.