-
Notifications
You must be signed in to change notification settings - Fork 18
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
Fail to run preprocess on Windows machine #48
Comments
Oh, I see some one already managed to add same issue 2 hours before me. |
Nah, this is a different bug. Sorry about that. |
Can you try it with the following devDependencies in
and then |
Same error in console as above. It still fails for me under preprocess.js: console output!
If I go into where the issue occurs, aka preprocess.js and add a breakpoint on line 11:
|
I will try a fix tonight. Thank you for testing. |
Can you try again with the new release |
Works with package.json dev dependencies from above and svelte-jester at 1.7.0 |
Hi! |
Looks like plugin fails to run preprocess on windows machines.
How to reproduce:
On Windows, with node 14.17.0 installed run following
Expected:
We should see 2 passed tests.
Actual:
Info
Investigated a bit why this is happening, it seems that inside src/preprocess.js line 4 it attempts to import absolute path that fails on Windows machines. It looks like this is by design in NodeJs as mentioned in issue at comment
Provided solution there is to use url.pathToFileURL(pathToFile) to solve convert file path to URL file protocol for ES loader to find the file for windows as well.
Worth mentioning, older version like 1.1.15
The text was updated successfully, but these errors were encountered: