Last active
May 9, 2019 05:44
-
-
Save ossan-pg/ed3fc60e195065c9912c85564b933af2 to your computer and use it in GitHub Desktop.
elm/http をインストール後に elm-test を実行するとパッケージの依存でエラーになる
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ mkdir elm-hoge-test | |
$ cd elm-hoge-test | |
$ elm init | |
Hello! Elm projects always start with an elm.json file. I can create them! | |
Now you may be wondering, what will be in this file? How do I add Elm files to | |
my project? How do I see it in the browser? How will my code grow? Do I need | |
more directories? What about tests? Etc. | |
Check out <https://elm-lang.org/0.19.0/init> for all the answers! | |
Knowing all that, would you like me to create an elm.json file now? [Y/n]: | |
Okay, I created it. Now read that link! | |
$ elm-test init | |
Here is my plan: | |
Add: | |
elm/random 1.0.0 | |
elm-explorations/test 1.2.1 | |
Would you like me to update your elm.json accordingly? [Y/n]: | |
Dependencies loaded from local cache. | |
Dependencies ready! | |
Check out the documentation for getting started at https://package.elm-lang.org/packages/elm-explorations/test/latest | |
$ elm-test | |
elm-test 0.19.0-rev6 | |
-------------------- | |
Running 1 test. To reproduce these results, run: elm-test --fuzz 100 --seed 37510189825102 tests/Example.elm | |
TEST RUN INCOMPLETE because there is 1 TODO remaining | |
Duration: 902 ms | |
Passed: 0 | |
Failed: 0 | |
Todo: 1 | |
> Example | |
? TODO: Implement our first test. See https://package.elm-lang.org/packages/elm-explorations/test/latest for how to do this! | |
$ elm install elm/http | |
Here is my plan: | |
Add: | |
elm/bytes 1.0.8 | |
elm/file 1.0.5 | |
elm/http 2.0.0 | |
Would you like me to update your elm.json accordingly? [Y/n]: | |
Dependencies loaded from local cache. | |
Dependencies ready! | |
$ elm-test | |
-- INVALID PACKAGE DEPENDENCIES --------------------------------------- elm.json | |
The dependencies in your elm.json are not compatible. | |
Did you change them by hand? Try to change it back! It is much better to add | |
dependencies with elm install or the dependency management tool in elm reactor. | |
Please ask for help on the Elm slack <http://elmlang.herokuapp.com/> if you try | |
those paths and still cannot figure it out! | |
Compilation failed while attempting to build tests/Example.elm | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
下記の対処で一応解決:
elm-testでThe dependencies in your elm.json are not compatibleと怒られたので対処した
https://qiita.com/Keck/items/de61ff566b99a76a1cd0