Skip to content

Mobx6 example does not work with Node 15 / npm 7.3 #79

Closed
@Artur-

Description

@Artur-

With the given package.json:

{
  "name": "typescript",
  "version": "0.0.0",
  "private": true,
  "dependencies": {
    "@adobe/lit-mobx": "^0.0.4",
    "lit-element": "^2.3.1",
    "mobx": "^6.0.0"
  }
}

You get an error on

npm install
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: typescript@0.0.0
npm ERR! Found: mobx@6.0.4
npm ERR! node_modules/mobx
npm ERR!   mobx@"^6.0.0" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer mobx@"^5.0.0" from @adobe/lit-mobx@0.0.4
npm ERR! node_modules/@adobe/lit-mobx
npm ERR!   @adobe/lit-mobx@"^0.0.4" from the root project
npm ERR! 

This is because npm 7 changed how peer dependencies are handled.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions