Skip to content
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

[Bug] npm install Fails with Dependency Error #12

Closed
darthmachina opened this issue Oct 31, 2021 · 5 comments
Closed

[Bug] npm install Fails with Dependency Error #12

darthmachina opened this issue Oct 31, 2021 · 5 comments
Assignees
Labels
kind/bug Something isn't working

Comments

@darthmachina
Copy link
Contributor

darthmachina commented Oct 31, 2021

I thought I would check out the code to see if there are some small things I could do myself and submit PRs for since I love the start of this so far, but I'm running into the following error when running npm install:

npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: cardboard@0.0.1
npm ERR! Found: elm-webpack-loader@8.0.0
npm ERR! node_modules/elm-webpack-loader
npm ERR!   dev elm-webpack-loader@"^8.0.0" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer elm-webpack-loader@"^7.0.1" from elm-hot-webpack-loader@1.1.8
npm ERR! node_modules/elm-hot-webpack-loader
npm ERR!   dev elm-hot-webpack-loader@"^1.1.8" from the root project
npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.

I looked at elm-hot-webpack-loader@1.1.8 and it does reference @"^7.0.1 for the dependent. Since it seems to be working for you is there around this error?

@roovo roovo added kind/bug Something isn't working question labels Oct 31, 2021
@roovo
Copy link
Owner

roovo commented Oct 31, 2021

hmmmm, odd. I just trashed my node_modules directory and re did npm install and all worked fine (and I don't have anything relevant install globally). I have added an item on the todo list to verify on a separate machine. In the meantime, I'd just put 7.01 in your package file and go with that. I think it should be fine.

Anyone else having this issue??

@roovo roovo added this to the Post Initial Release milestone Oct 31, 2021
@roovo roovo removed the question label Oct 31, 2021
@roovo roovo self-assigned this Oct 31, 2021
@darthmachina
Copy link
Contributor Author

darthmachina commented Oct 31, 2021

I can confirm that downgrading to 7.0.1 allows npm install to run without issue for me.

EDIT: Nevermind the below, the package wasn't actually installed, it was just showing up in my searches and I wasn't searching on the right packages. I'll see what's up, as I still think it's just my local environment.

IGNORE:
I'm using Archlinux and I did find that I have elm-platform installed from the AUR, and it is flagged as out of date since 2019-10-21, so that is probably what's going on with my local environment. I've never done anything with Elm so that was pulled in as a dependency of something, and I didn't even think of checking my installed packages.

Can probably chalk this up to a local environment issue and not an issue with the code.

@roovo
Copy link
Owner

roovo commented Oct 31, 2021

Funnily enough I did get the same error this afternoon when I was messing around with the elm.json file, but didn't have the time to work out what was going on so I will still follow this to see if I can make it happen in my dev environment.

@roovo roovo mentioned this issue Oct 31, 2021
19 tasks
roovo pushed a commit that referenced this issue Nov 3, 2021
Downgraded elm-webpack-loader as 8.0.0 is not compatible with
the latest elm-hot-webpack-loader
@roovo
Copy link
Owner

roovo commented Nov 3, 2021

Have just done an install on a fresh machine and got exactly the same issue so have pushed the downgrade to the tech-debt branch ready for inclusion in the next release.

Thanks

@roovo roovo closed this as completed Nov 3, 2021
roovo pushed a commit that referenced this issue Nov 3, 2021
Downgraded elm-webpack-loader as 8.0.0 is not compatible with
the latest elm-hot-webpack-loader
@darthmachina
Copy link
Contributor Author

Well, I'm glad I'm not going crazy then :). I had the downgrade stored locally but ignored for committing just in case it was just me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants