You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now in workspace1, I'm able to import x from "@project/workspace2" and import y from "@project/workspace3", however I can't import z from "@project/workspace1" (it can't reference itself).
Looking inside project/packages/workspace1/node_modules, there are symlinks to @project/workspace2 and @project/workspace3 but not to @project/workspace1. project/node_modules doesn't have any symlinks to any of these workspaces, because I set nmHoistingLimits: workspaces.
How would I be able to let files inside "@project/workspace1" reference itself?
I've tried adding "@project/workspace1": "portal:../workspace1" to the dependancy list but this creates an infinite loop during yarn install.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Consider a workspace
"name": "@project/workspace1"
.workspace1
hasNow in
workspace1
, I'm able toimport x from "@project/workspace2"
andimport y from "@project/workspace3"
, however I can'timport z from "@project/workspace1"
(it can't reference itself).Looking inside
project/packages/workspace1/node_modules
, there are symlinks to@project/workspace2
and@project/workspace3
but not to@project/workspace1
.project/node_modules
doesn't have any symlinks to any of these workspaces, because I setnmHoistingLimits: workspaces
.How would I be able to let files inside
"@project/workspace1"
reference itself?I've tried adding
"@project/workspace1": "portal:../workspace1"
to the dependancy list but this creates an infinite loop during yarn install.Beta Was this translation helpful? Give feedback.
All reactions