Closed rahXephonz closed 2 years ago
Seems like on vite configuration, isn't it?
https://github.com/storybookjs/builder-vite/issues/452 i've got the reference from others
And this one too https://github.com/vitejs/vite/issues/9113 related with vite 3
Hello, you might not be on a version of node that's new enough. Can you try node 18?
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? So you are using node v18?
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. https://nodejs.org/api/esm.html#node-imports
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