develope package for adonisjs throw error on service provider #3148
Unanswered
farshadfahimi
asked this question in
Help
Replies: 2 comments 2 replies
-
Did you put the path of your provider under .adonisrc.json? "providers": [
"./providers/AppProvider",
"@adonisjs/core",
"@adonisjs/lucid",
"./providers/MellatProvider", // <----
"@adonisjs/view",
], |
Beta Was this translation helpful? Give feedback.
1 reply
-
Can you share the contents of |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to make a package for adonisjs and check the link and the tutorial doc to make package.
for test I have a file named
Bank/Port/index.ts
and in theindex.ts
just export simple class.create the provider like below
and in the contract have
port.ts
in the routes just call this like below
and got bellow error
how should I resolve this problem?
Beta Was this translation helpful? Give feedback.
All reactions