nextron icon indicating copy to clipboard operation
nextron copied to clipboard

shamefully-hoist vs pnpm add

Open ShahriarKh opened this issue 1 year ago • 3 comments

Switching to pnpm, I faced the issue mentioned in #278.

In order to fix it, I used pnpm add @babel/runtime-corejs3 mentioned here. However, there seems to be another solution, which is to use --shamefully-hoist flag (which is mentioned here but not in the main README).

I'm wondering what's the correct way and what's the difference? I didn't have to install @babel/runtime-corejs3 when using npm and things worked fine, but now - with pnpm- it's a dependency in my project 🤔

ShahriarKh avatar Apr 27 '23 12:04 ShahriarKh

You can add a .npmrc in the root directory

shamefully-hoist=true

LouisMazel avatar Apr 30 '23 18:04 LouisMazel

image

yerled avatar Sep 07 '23 10:09 yerled

image

work fine after set shamefully-hoist=true node-linker=hoisted into .npmrc

yerled avatar Sep 07 '23 10:09 yerled