question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Peer dependency issue for elm 0.19.1-1

See original GitHub issue

Elm 0.19.1 is out. Installing elm@latest (=elm 0.19.1-1) causes elm-webpack-loader to report:

npm WARN elm-webpack-loader@6.0.0 requires a peer of elm@0.19.0-no-deps || ^0.19.1 but none is installed. You must install peer dependencies yourself.

Alternative: run npm upgrade. But, that tries to install elm@0.19.1 (without the -1). This throws an error in the install script:

    throw new errors.TypeError('ERR_INVALID_ARG_TYPE', 'path', 'string');
    ^

I’m stuck. Seems to me elm-webpack-loader (still?) has a dependency issue?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
robinheghancommented, Oct 25, 2019

I don’t. Tried out a couple of things but didn’t have much luck 😕

0reactions
robinheghancommented, Oct 31, 2019

Sure. A peer dependency should only give you a warning that you need to install something yourself. We don’t actually depend on elm being installed by npm, just that it exists. Us definining it as a peer dependency is just a way of telling our users that it should be of a certain version, but we’ll try running it anyways.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Help test the new npm elm package! - Request Feedback
Changed: Binaries are downloaded by npm instead of custom code in the elm package. No more dependencies or deprecation warnings!
Read more >
[Fixed] NPM conflicting peer dependency error
Getting NPM conflicting peer dependency errors? This post will go over ways to fix this!
Read more >
npm WARN ... requires a peer of ... but none is installed ...
So you cannot install peer dependencies automatically with npm 3 and upwards. Updated Solution: Use following for each peer dependency to ...
Read more >
elm-upgrade
Start using elm-upgrade in your project by running `npm i elm-upgrade`. ... elm-upgrade can also upgrade dependencies of your Elm 0.19 ...
Read more >
How to solve peer dependencies error after updating all ...
Tried updating npm , then did a bunch of commands from the Github issues & Stackoverflow. Then I tried npm cache clean --force...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found