wclr / yalc

Work with yarn/npm packages locally like a boss.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Invalid "file:.yalc/<package name>" from the root project

eustacezheng opened this issue · comments

Hello everyone,

I managed to successfully publish my package using yalc publish and have it available globally. In my test project (React), I attempted to do yalc add <package> and it seems like it went well.

However, when I perform a npm ls react, I can see 2 "react" packages appear and the one pointing towards the package states an error: "Invalid file:.yalc/" from the root project.

Context

  • Published package has React and React-Dom listed as peerDependencies and are being used in devDependencies as I am exposing custom hooks (and using Context/Provider).
  • Test App would be a React app, hoping to utilize this package for testing

Has anyone faced this issue before? Thank you!

No longer an issue.