Questions tagged [yarn-link]

6 questions
7
votes
1 answer

Are `yarn link` and `npm link` interoperable?

I know there are subtle differences between yarn and npm. Now I have a library managed with yarn and an app managed with npm. Should it work without issues, if I create a linked pkg in my lib directory via yarn and apply it via npm in my other…
helt
  • 4,925
  • 3
  • 35
  • 54
3
votes
2 answers

Webpack doesn't pick up local node_modules updates

I have a package A that depends on package B. I am using yalc to update B and publish changes locally so that A can pick up these changes. I can see that the changes are copied into A's node_modules folder, however webpack doesn't seem to pick them…
2
votes
0 answers

Exporting types and enums fails when using yarn/npm link

I'm trying to link a library between two projects to help with development workflow. Sharing some code and types between my TypeScript backend and frontend. It seemed to work with const functions, but when I add some enums and types I get this…
somerandomusername
  • 1,993
  • 4
  • 23
  • 55
0
votes
1 answer

Link angular project locally

I'm trying to link my angular 13 project as a ui-component library. I've built the project and have the package in a dist folder. Next, I linked it to my main project (angular 14) using "yarn link" and I can see it is properly added as a dependency…
Oyekeye Sam
  • 73
  • 2
  • 8
0
votes
0 answers

How can I create local package in React?

I have main React typescript project and trying to create 3 local packages inside the project our of src folder and inside local_packages folder. The goal is whenever changes are made in these local packages, different dev pull changes, do yarn…
0
votes
1 answer

vue-cli-service won't serve if using yarn link'ed package

I've got a private npm package hosted on GitHub. The package is essentially a Vue component and I build it with vue-cli-service build --target lib --name init-map src/main.ts. Here's the main.ts's contents: import InitMap from…
smellyshovel
  • 176
  • 10