Closed vencho-mdp closed 1 month ago
I have the same issue.
What I notice is that if I make a change to a file and save it, then the server works fine. But it seems to error out on first run. Any ideas?
Same error here. Using pnpm.
this seems to be working now with the latest version of nitro. kind of weird
@vencho-mdp this is still happening to me
@darklight9811 Hi! Do you have a reproduction?
@vencho-mdp I believe it may be an issue with node version used, in my case:
export default () => "hi"
My node version was 18.4.0
What happens if you set your node version to 16.x?
@vencho-mdp 16.10.0 breaks, 16.13.1 works. Yeah, that makes sense since it says we need ^16.11.0, but it also says ^18 should work
Environment
Nitro: Latest Node: v16.14.2
Reproduction
Go to the Nitro Playground and Run
nitro dev
Or check on Stackblitz: https://stackblitz.com/github/unjs/nitro/tree/main/examples/hello-world?file=package.json
Describe the bug
No index route is generated plus the error above is shown in the console
Additional context
No response
Logs