Closed Sebring closed 3 years ago
This is acutally webpack/lib/util/fs.js not handling windows paths properly.
Closing, bug is not in Marko.
@Sebring nice, but how did you solve it?
@Sebring nice, but how did you solve it?
For my private project I just removed the if-statements for the linux parts and made it always assert windows paths with no checking. This would however fail on a linux server in production, keep that in mind.
Maybe this is of interest https://github.com/webpack/webpack/commit/e28788a4d4cacb30d576d2fefede84526709e11f but I haven't tried it myself.
@Sebring thank you very much for replying. I tried the PR mentioned (it's already merged) but it didn't solve it. I also tried installing latest webpack, upgrading, downgrading, both marko and/or webpack and just different errors appeared. I'll try what you've mentioned. If you have any more tips, please, let me know.
Well... I could
return `${rootPath}/${filename}`;` // DON'T do this
and it run, but this is definitely an open issue.
Marko Version: 5.1.10 (Windows 10)
Details
Followed the install instructions at https://markojs.com/docs/installing/ using
npx @marko/create
and not specifying template. default template:default starter app
Expected Behavior
npm run dev
is expected to start dev-serverActual Behavior
npm run dev
failed.The path
\<..>\
is edited in this post and should not be considered failing part.Possible Fix
posix.join
? check/
vs\
Additional Info
### Your Environment - Node v14.15.4 - Windows 10 - npm 6.14.10 ### Steps to Reproduce 1. $mkdir test %% cd test 2. $npx @marko/create 3. name test, use default template 4. $cd test 5. $npm run dev ### Stack Trace ``` $ npm run dev > test@1.0.0 dev C:\Users\<..>\marko5\test > marko-serve ./src/pages You can now view src\pages in your browser Local Address: http://localhost:3000 On Your Network: http://