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
{{ message }}
This repository has been archived by the owner on Jun 8, 2021. It is now read-only.
as I see cli util tries to resolve node_modules inside packages/api folder, but lerna/yarn workspaces use hoisting (https://github.com/lerna/lerna/#--hoist-glob) for modules and creates symlinks only for .bin
as a short solution, to make it work, I just use postinstall hook and create an symlink manually: cd packages/api/node_modules && ln -s ../../../node_modules/@adonisjs
The text was updated successfully, but these errors were encountered:
I'm trying to use adonis inside monorepo with https://lernajs.io/ and yarn/yarn workspaces
my deps:
folder structure looks so:
here is lerna config
just try to execute
adonis --help
inside./packages/api
cwdit throws an error:
so there is two node_modules folders
as I see cli util tries to resolve
node_modules
insidepackages/api
folder, but lerna/yarn workspaces use hoisting (https://github.com/lerna/lerna/#--hoist-glob) for modules and creates symlinks only for.bin
as a short solution, to make it work, I just use postinstall hook and create an symlink manually:
cd packages/api/node_modules && ln -s ../../../node_modules/@adonisjs
The text was updated successfully, but these errors were encountered: