-
Notifications
You must be signed in to change notification settings - Fork 49
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] [Error: ENOENT: no such file or directory, scandir] #10
Comments
Seems like on vite configuration, isn't it? |
storybookjs/builder-vite#452 i've got the reference from others |
And this one too vitejs/vite#9113 related with vite 3 |
Hello, you might not be on a version of node that's new enough. Can you try node 18? |
yeah i can, yep that a first solution, but how about another solution that we dont want upgrade the versions about this? |
hmm, read a lot reference and mention about this issue on vite there are no solutions other upgrading the node version Someone tell this before Vite uses node: import which is supported in v16.0.0+ and v14.18.0+. v15 does not support this. |
Hello @jonluca i've upgraded my node engine but got this issue when running server with yarn dev:server App is listening on http://localhost:7456
[Error: ENOENT: no such file or directory, scandir '/Users/macbook/Desktop/vite-ssr/dist/assets'] {
errno: -2,
code: 'ENOENT',
syscall: 'scandir',
path: '/Users/macbook/Desktop/vite-ssr/dist/assets'
}
[nodemon] app crashed - waiting for file changes before starting... |
oops sorry, my bad. just some typo in here |
Hello, i hope you are good. I want to try improve this project with research about ssr, I like this template
But got some issues when running the server or client. You can see at this screenshot
How the solve this issue? I'm using node engine 14.17.0
The text was updated successfully, but these errors were encountered: