-
-
Notifications
You must be signed in to change notification settings - Fork 98
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
Build failures with 3.0.17 #501
Comments
Hello @ianmackenzie, thank you for opening the issue! I actually just saw this as well when I tried to upgrade the starter repo. I was thinking the same thing that it is likely related to the elm-codegen upgrade (#488), since that's the only thing that would be related to changing that generated code since the 3.0.17. @miniBill do you have any thoughts on that? The only things I can think of are:
|
Also, wonderful to hear that you're building your site with elm-pages! 😄 |
I actually get the same error 😅 I think it may be a bug in |
@ianmackenzie if you create |
Interesting, thanks for the quick response @miniBill! That is good context and does narrow things down. I was looking through |
succeed: a -> Internal.ApiRoute.ApiRouteBuilder a (List String)
-}
succeed : Elm.Expression -> Elm.Expression
succeed succeedArg_ =
Elm.apply
(Elm.value
{ importFrom = [ "ApiRoute" ]
, name = "succeed"
, annotation =
Just
(Type.function
[ Type.var "a" ]
(Type.namedWith
[ "Internal", "ApiRoute" ]
"ApiRouteBuilder"
[ Type.var "a", Type.list Type.string ]
)
)
}
)
[ succeedArg_ ] I think this is the culprit |
Yeah, I think that this might be |
It may be possible to work around this in |
Ok, I think I have a clean workaround: don't import Same for @dillonkearns do you want a PR? |
(or wait for the fix to mdgriffith/elm-codegen#104 to drop, that also works) |
If you’re up for it, I think a PR with the workaround would be excellent @miniBill! It would be good to get something out to get the release fixed to avoid confusion for anyone who installs it |
Ok, I think #502 works as a fix. I quickly tested it and it seems to not generate the spurious imports anymore. |
This is working now with the help of #503. Thank you so much for investigating and fixing the issue @miniBill, and for the quick turnaround! 🙏 NPM version 3.0.19 is working now. Let me know how it goes for you @ianmackenzie! |
3.0.19 seems to work great, thanks for the quick work @miniBill and @dillonkearns! |
Excellent, thank you for confirming @ianmackenzie! I wonder if we'll be seeing faster build times as a result of the upgraded dependencies here, too, I would imagine so. |
We just tried updating from 3.0.16 to 3.0.17 at work, but started getting a bunch of Elm compiler errors when running
elm-pages build
:Is it possible that the update to
elm-codegen
v5 broke code generation in some cases, or is this likely a symptom of something else? (The error happens both locally and in CI, including after deleting.elm-pages
,elm-stuff
andnode_modules
, so I don't think it's a corrupt build cache or anything like that.)(And yes, as you might be able to guess from the paths we are indeed using
elm-pages
for our public web site! Thanks for all your work on it! 🙏)The text was updated successfully, but these errors were encountered: