Closed asielorz closed 4 months ago
Hello @asielorz, I believe what is happening here is that elm-pages
runs elm-review
for some internal checks to help give improved error messages to the user, but there was a recent upgraded elm-review
NPM package. So the internal elm-review code for elm-pages needs to update to the latest elm-review
Elm package to be compatible if you are using the latest version of the CLI tool in your package.json. I'm on vacation at the moment, but when I'm back I'll push out an update for that.
You can downgrade to an earlier elm-review NPM package in your package.json to get it running as a workaround.
Pinning elm-review version to 2.11.2 fixed the problem. Thanks so much for the help. I love elm-pages by the way. Great work!
Published NPM package elm-pages@3.0.16 which uses the latest elm-review for the internal elm-review rules, allowing users to use the latest elm-review NPM package in their project's package.json 👍
I started experiencing this problem at some point this month. On June 1st, my github workflow running elm-pages build worked perfectly. On June 17th I added a new markdown page to my repositiory and the build process failed. I made no changes to source code or build configuration. I had my elm-pages version pinned to 3.0.8.
I have tried upgrading all dependencies. I am now using elm-pages 3.0.15. I have upgraded all versions of dependencies in my elm.json file. My elm-json file explicitly depends on jfmengels/elm-review 2.14.0, and I am still getting the same error.
I have also tried the solutions proposed by the script. npx elm-json install jfmengels/elm-review@2 and npx elm-json upgrade --unsafe.
First of all, it looks like the build process is not hermetic and even when pinning versions it can spuriously break without changing any code or build configuration.
Second, I don't understand why the build is deciding to use elm-review 2.13.1 when elm.json explicitly states that it depends on elm-review 2.14.0. I am not sure if this is an elm-pages bug or a bug in any of the layers below like lamdera or the elm-compiler.
Just in case, the entire elm.json file