Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Importing transform context error #1

Open
Salim-Alsaeh opened this issue Jan 20, 2021 · 3 comments
Open

Importing transform context error #1

Salim-Alsaeh opened this issue Jan 20, 2021 · 3 comments

Comments

@Salim-Alsaeh
Copy link

when importing trasnform from HttpContextContract, it shows the following error:
"var transform: any
Property 'transform' does not exist on type 'HttpContextContract'.ts(2339)
'transform' is declared but its value is never read"

Although the code works.

@kmorpex
Copy link
Owner

kmorpex commented Mar 1, 2021

when importing trasnform from HttpContextContract, it shows the following error:
"var transform: any
Property 'transform' does not exist on type 'HttpContextContract'.ts(2339)
'transform' is declared but its value is never read"

Although the code works.

Thanks, I'll fix it in the next patch.

@yobisetiawan
Copy link

update?

@toksdotdev
Copy link

toksdotdev commented Jun 24, 2021

As a hack, pending when this gets fixed, a simple approach I took was to import nothing from the AdonisBublebeeTSProvider in any file (in my case, I imported it in server.ts).

The type definition for the HttpRequestContent is in that file, so importing it just makes the type system aware of the transform.

import {} from 'adonis-bumblebee-ts/build/providers/AdonisBublebeeTSProvider';

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants