dillonkearns / elm-pages

Hybrid Elm framework with full-stack and static routes.
https://elm-pages.com
BSD 3-Clause "New" or "Revised" License
658 stars 98 forks source link

elm-pages init creates an elm.json with invalid constraints #302

Open BrianHicks opened 2 years ago

BrianHicks commented 2 years ago

Hey hey! I'm starting a new elm-pages site for the first time in a while today and after running npx elm-pages init sitename, elm-pages build gives me this:

-- PROBLEM BUILDING DEPENDENCIES -----------------------------------------------

I ran into a compilation error when trying to build the following package:

    MartinSStewart/elm-serialize 1.2.6

This probably means it has package constraints that are too wide. It may be
possible to tweak your elm.json to avoid the root problem as a stopgap. Head
over to https://elm-lang.org/community to get help figuring out how to take this
path!

Note: To help with the root problem, please report this to the package author
along with the following information:

    bburdette/toop 1.2.0
    danfishgold/base64-bytes 1.1.0
    elm/bytes 1.0.8
    elm/core 1.0.5
    elm/json 1.1.3
    elm/regex 1.0.0

If you want to help out even more, try building the package locally. That should
give you much more specific information about why this package is failing to
build, which will in turn make it easier for the package author to fix it!

elm-json upgrade seems to fix it, though, with this diff:

diff --git a/elm.json b/elm.json
index 560186a..0f36438 100644
--- a/elm.json
+++ b/elm.json
@@ -15,7 +15,7 @@
             "elm/url": "1.0.0"
         },
         "indirect": {
-            "MartinSStewart/elm-serialize": "1.2.6",
+            "MartinSStewart/elm-serialize": "1.3.0",
             "avh4/elm-color": "1.0.0",
             "bburdette/toop": "1.2.0",
             "danfishgold/base64-bytes": "1.1.0",
@@ -31,17 +31,17 @@
             "elm/time": "1.0.0",
             "elm/virtual-dom": "1.0.2",
             "elm-community/dict-extra": "2.4.0",
-            "elm-community/list-extra": "8.5.1",
+            "elm-community/list-extra": "8.5.2",
             "elm-explorations/test": "1.2.2",
             "fredcy/elm-parseint": "2.0.1",
-            "jfmengels/elm-review": "2.6.1",
+            "jfmengels/elm-review": "2.7.2",
             "mgold/elm-nonempty-list": "4.2.0",
             "miniBill/elm-codec": "2.0.0",
             "miniBill/elm-unicode": "1.0.2",
             "noahzgordon/elm-color-extra": "1.0.2",
             "robinheghan/murmur3": "1.0.0",
             "rtfeldman/elm-hex": "1.0.0",
-            "stil4m/elm-syntax": "7.2.8",
+            "stil4m/elm-syntax": "7.2.9",
             "stil4m/structured-writer": "1.0.3",
             "tripokey/elm-fuzzy": "5.2.1",
             "vito/elm-ansi": "10.0.1",
@@ -52,4 +52,4 @@
         "direct": {},
         "indirect": {}
     }
-}
\ No newline at end of file
+}
miniBill commented 7 months ago

@BrianHicks is this still true?

BrianHicks commented 7 months ago

no idea. Give it a try and see!

miniBill commented 7 months ago

Seems fixed!