-
-
Notifications
You must be signed in to change notification settings - Fork 17
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
Dev: Invalid module "node_modules/bin/vite-ssr" on Windows #3
Comments
Tested using node v14.17.3 + npm 6.14.13 and also node v16.6.0 + npm 7.19.1, both terminating with same error. |
@leomp12 Can you try modifying I don't use windows so I'm not sure if that will fix it 🤔 |
@frandiox sorry for the delay, I was not using Windows past days. $ cat node_modules/.bin/vitedge
#!/bin/sh
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
case `uname` in
*CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
esac
if [ -x "$basedir/node" ]; then
"$basedir/node" "$basedir/../vitedge/bin/cli.js" "$@"
ret=$?
else
node "$basedir/../vitedge/bin/cli.js" "$@"
ret=$?
fi
exit $ret
|
@leomp12 Oh wow, some NPM/Windows magic. In that case, please check |
npm run dev
on Windows 10 brokes with the error:TypeError [ERR_INVALID_MODULE_SPECIFIER]: Invalid module "~/node_modules/.bin/vite-ssr"
node_modules/.bin/vite-ssr
file exists but is not a JS module (and shouldn't be I guess).Any ideas? May be an issue of https://github.com/antfu/vitesse itself?
The text was updated successfully, but these errors were encountered: