How can I share code between adonis projects? #3762
-
I have three projects that use the same models and I would like to use a Commons project with those models. Example:
I have solved this using Typescript references. The problem is that models use Adonis CORE and Lucid libraries and when doing the build it complains about not finding the libraries in IoC:
I understand that this happens because it is a library that does not start adonis and does not have the IoCs available How can I fix this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I have fixed it by adding types in tsconfig. |
Beta Was this translation helpful? Give feedback.
I have fixed it by adding types in tsconfig.