facebook/fbt

Error in dependencies between the latest fbt packages

BytesOfMan opened this issue ยท 1 comments

๐Ÿ› Bug Report

Recurrence of bug reported in #188

To Reproduce

Steps to reproduce the behavior:

Create an empty folder and get started with

npm i

Now that we got a fresh and empty module, let's try to install fbt:

npm i fbt babel-plugin-fbt babel-plugin-fbt-runtime

We get the following error:

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: undefined@undefined
npm ERR! Found: babel-plugin-fbt@0.17.2
npm ERR! node_modules/babel-plugin-fbt
npm ERR!   babel-plugin-fbt@"*" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer babel-plugin-fbt@"^0.16.x" from fbt@0.16.1
npm ERR! node_modules/fbt
npm ERR!   fbt@"*" 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! 
npm ERR! See /home/joey/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/joey/.npm/_logs/2021-03-15T16_37_12_012Z-debug.log

Expected behavior

npm install should "just work"

envinfo

npx envinfo --system --binaries

 System:
    OS: Linux 5.8 Pop!_OS 20.10
    CPU: (8) x64 Intel(R) Core(TM) i5-10210U CPU @ 1.60GHz
    Memory: 29.35 GB / 39.06 GB
    Container: Yes
    Shell: 5.0.17 - /bin/bash
  Binaries:
    Node: 15.5.1 - ~/.nvm/versions/node/v15.5.1/bin/node
    Yarn: 1.22.5 - /usr/bin/yarn
    npm: 7.3.0 - ~/.nvm/versions/node/v15.5.1/bin/npm

Fixed in bc8f4ea
Pushed to fbt@0.16.2