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
I have a question about how to link nx libs (publishable react or ts libs) to an external react application ?
With an integrated repo, NX will build everything to one and only one dist folder so I can't use :
pnpm link --global, won't find internal dependencies
Pre-transform error: Failed to resolve import "@edifice-ui/icons" from "../../../lab/react-monorepo-ntm/dist/packages/react/index.mjs". Does the file exist? (x8)
pnpm pack neither cause one package will look for internal dependency on npm registry
using verdaccio to version and release "packages" takes some time..
dist folder in every lib, because nx release is not able to find any relation between dependencies (only works in dist folder at root level
⚠️ it is not possible to have the application inside the monorepo
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
-
Hello!
I have a question about how to link nx libs (publishable react or ts libs) to an external react application ?
With an integrated repo, NX will build everything to one and only one
dist
folder so I can't use :pnpm link --global
, won't find internal dependenciespnpm pack
neither cause one package will look for internal dependency on npm registryusing verdaccio to version and release "packages" takes some time..
dist
folder in every lib, becausenx release
is not able to find any relation between dependencies (only works indist
folder at root levelBeta Was this translation helpful? Give feedback.
All reactions