File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
docs/platforms/javascript/common/troubleshooting Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -449,9 +449,16 @@ While adding these packages as direct dependencies might remove the warning mess
449449pnpm add import -in-the-middle require-in-the-middle
450450` ` `
451451
452- As a workaround, create or modify ` .npmrc ` in your project root:
452+ As a workaround, create or modify ` .npmrc ` in your project root. First, try to specifially hoist the dependencies in question :
453453
454- ` ` ` npmrc
454+ ` ` ` ini {filename: .npmrc }
455+ public - hoist- pattern[]= * import -in-the-middle*
456+ public - hoist- pattern[]= * require- in - the- middle*
457+ ` ` `
458+
459+ If that doesn't work, you can also tell pnpm to hoist all dependencies:
460+
461+ ` ` ` ini {filename: .npmrc }
455462shamefully- hoist= true
456463` ` `
457464
You can’t perform that action at this time.
0 commit comments