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
I am getting a Typescript error while configuring Bouncer.
I also seem to get this while running migrations but it seems to happen randomly, only with a few of them. If I rollback and rerun all migrations, it happens with different ones randomly. The migrations went through in spite of the error message.
However with Bouncer I don't want to just ignore the error considering it's for authorization.
CREATE: start/bouncer.ts
CREATE: contracts/bouncer.ts
UPDATE: tsconfig.json { types += "@adonisjs/bouncer" }
UPDATE: .adonisrc.json { commands += "@adonisjs/bouncer/build/commands" }
UPDATE: .adonisrc.json { providers += "@adonisjs/bouncer" }
UPDATE: .adonisrc.json { preloads += "./start/bouncer" }
error TS6059: File '/home/user/Dev/project/commands/index.ts' is not under 'rootDir' '/app'. 'rootDir' is expected to contain all source files.
The file is in the program because:
Root file specified for compilation
CREATE: ace-manifest.json file
I have typescript 4.6.2 installed.
Edit: ran configure again and this time I did not get the error message. Seems to be happening randomly.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
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 am getting a Typescript error while configuring Bouncer.
I also seem to get this while running migrations but it seems to happen randomly, only with a few of them. If I rollback and rerun all migrations, it happens with different ones randomly. The migrations went through in spite of the error message.
However with Bouncer I don't want to just ignore the error considering it's for authorization.
I have typescript 4.6.2 installed.
Edit: ran configure again and this time I did not get the error message. Seems to be happening randomly.
Beta Was this translation helpful? Give feedback.
All reactions