How do I create custom utilities and import them into a controller #4261
Unanswered
simonjcarr
asked this question in
Help
Replies: 1 comment
-
What happens when you run |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I want to create a custom utility to work with keycloak.
I created the following folder structure in my adonis project
Inside token.ts I have the following code
In my controller I have tried the following two imports but in both cases I get a cant find module error
Cannot find module '../../keycloak/token' or its corresponding type declarations.
Cannot find module 'App/keycloak/token' or its corresponding type declarations.
I assume it is because typescript is not compiling the file at build time, but how do I add custom utilities in Adonis then?
Beta Was this translation helpful? Give feedback.
All reactions