Trouble building on Windows #1
Comments
Hey @j-maas, thanks for the feedback! I added a note about lamdera reset and about installing the lamdera compiler to the readme instructions 👍 The "fileName" or "name" properties of emitted files must be strings that are neither absolute nor relative paths, received "../../../../../C:\Users\Johannes\Code\elm-pages-3-alpha-starter\elm-stuff\elm-pages\index.html" This one seems like it's related to Windows vs. Unix file paths. I'm not sure exactly where it's coming from, it could be this line: Could you try changing that file locally in the |
Great tip! I think this is an issue in how Vite or Rollup handles Windows paths. At some point they use So it does not appear to be an issue with elm-pages, but rather something in Vite or Rollup. I will investigate further. |
Actually, the Windows-style path is the |
Oh, perfect, yes that would explain it! Thanks for trying that out, that's a big help 🙏 |
Actually I can't get it to behave correctly when converting the So for the time being, I'll close this issue again and maybe investigate on my own. ;) And I'm happy to help in this way! You've done such amazing work, it's really great to be able to help out a little bit. |
Yep, when I change the line in the Vite code from I will try to work out a fix upstream. |
Opened a PR on Vite: vitejs/vite#7383 |
Wow, great find! 👏 Thank you for digging into that and submitting a patch upstream! |
I was trying out this repo and ran into some issues that I don't know how to solve. It was a bit bumpy to get started, so I'll just describe what happened, even though not all of it is strictly relevant to the problem.
I cloned the repo as instructed in the README.md.
I ran
npm install
.I ran
npm run start
, but it errored saying it couldn't find lamdera.I had heard about lamdera roughly so I googled it and simply installed the binary that was available from their website and added it to my PATH.
After reloading the console, I ran
npm run start
again. It errored because some dependencies were not satisfied.1I ran
lamdera reset
.I ran
npm run start
, and the dependency error was about a different package.I ran
lamdera reset
andnpm install
.I ran
npm run start
and it worked.I ran
npm run build
and I get this error message:I had a quick look but couldn't determine where this weird path is set, so I'm not sure how to correct it.
Footnotes
Extract of error message:
↩The text was updated successfully, but these errors were encountered: