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

update needed for riot 7.X #18

Open
qlbit-com opened this issue Aug 15, 2022 · 1 comment
Open

update needed for riot 7.X #18

qlbit-com opened this issue Aug 15, 2022 · 1 comment
Assignees

Comments

@qlbit-com
Copy link

assume you checking out a project fresh, when no node_modules, no package-lock.json is available.

when package.json references riot 7.0.3 and riot@hot-reload 6.0.0
npm install
shows error

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: undefined@undefined
npm ERR! Found: [email protected]
npm ERR! node_modules/riot
npm ERR!   riot@"^7.0.3" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer riot@"^6.0.0" from @riotjs/[email protected]
npm ERR! node_modules/@riotjs/hot-reload
npm ERR!   @riotjs/hot-reload@"^6.0.0" 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.
npm ERR!

steps to reproduce:

  1. use https://github.com/riot/webpack-template
  2. verify no node_modules folder available
  3. verify no package-lock.json file available
  4. update reference to riot 7.0.3 in package.json
  5. run npm install

workaround available:

  1. temporarily reference riot 6.0.0 in package.json
  2. run npm install
  3. reference riot 7.0.3 in package.json
  4. run npm install again; it will succeed
@GianlucaGuarini
Copy link
Member

@qlbit-com for now you can simply install it with npm i @riotjs/hot-reload -f. During the next few weeks I will need to update the Riot.js ecosystem bumping the dependencies to v7

@qwerty287 qwerty287 mentioned this issue Oct 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants