Closed vschoener closed 4 years ago
I tested importing xmlbuilder2 1.4.1
in an empty folder and I get VS Code intellisense fine:
I then tested importing xmlbuilder2 1.4.1
into the NestJS starter project and it also works:
I think this is something on your end.
Thanks @oozcitak for your time.
Damn, no idea why it doesn't work. I use Webstorm but it should not make this difference. The compilation and the app was working, so it's was good and as I can put the Type in my service, I had the completion from there, but not in the provider I tried to create.
I'll try again, reinstalling the project and restarting IDE.
So yeah I confirmed from another computer, with fresh install of the project I don't get the completion with webstorm :( but it does with vscode
I know there are sometimes differences between vscode and webstorm to get information, I'll dig a bit see if I can find something
Maybe it's due to the fact that other project put the index.d.ts in the root of the package and have also tsconfig giving the location of the other definition?
Just saying it might be related, see winston project https://github.com/winstonjs/winston
I confirmed that there is no intellisense with WebStorm.
Maybe it's due to the fact that other project put the index.d.ts in the root of the package and have also tsconfig giving the location of the other definition?
This appears to be the case, I'm adding an explicit types
path to package.json
. Thank you for investigating.
Describe the bug I tried to import the type from this package and I can't get the type properly. So I don't know if it's a tsconfig issue from my side or yours, but til now, it's the first time I get this unresolved type.
Any idea?
To Reproduce From an existing TS project:
Try to get the autocomplete inside the brackets and see if you get definitions.
Expected behavior Having my IDE giving the available types
Version:
Additional context