Register Route macro from a provider from a package. #4764
-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Yes, definitely an issue with What I recommend is using the {
"@ntatoud/openapi": "file:../path/to/your/package"
} Then run |
Beta Was this translation helpful? Give feedback.
-
Thank you for your fast answer ! It indeed fixed my problem 😄 |
Beta Was this translation helpful? Give feedback.
Yes, definitely an issue with
pnpm link
. You end up with two versions of@adonisjs/core
in your project, and you’re adding the macro to the wrong instance.What I recommend is using the
file
protocol to test your package locally.In the
package.json
of your test app, add something like :Then run
pnpm install
and it should work.A small drawback of this method is that you’ll need to run
pnpm install
in your test app each time you rebuild your package