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

Getting TypeScript errors in the type definitions file #107

Open
3 of 6 tasks
vladfulgeanu opened this issue May 20, 2020 · 2 comments
Open
3 of 6 tasks

Getting TypeScript errors in the type definitions file #107

vladfulgeanu opened this issue May 20, 2020 · 2 comments

Comments

@vladfulgeanu
Copy link

Type:

  • bug
  • feature
  • enhancement
  • question

Environment:

  • OS: Ubuntu 20.04
  • Browser: Chrome 81
  • Library Version: 1.1.4

I'm going to open a PR:

  • yes
  • no

Description:

Started getting these 3 new TypeScript errors when starting webpack:

[at-loader] ./node_modules/webpack-extension-reloader/typings/webpack-extension-reloader.d.ts:7:13 
    TS2304: Cannot find name 'IEntriesOption'. 

[at-loader] ./node_modules/webpack-extension-reloader/typings/webpack-extension-reloader.d.ts:19:3 
    TS2666: Exports and export assignments are not permitted in module augmentations. 

[at-loader] ./node_modules/webpack-extension-reloader/typings/webpack-extension-reloader.d.ts:20:3 
    TS2666: Exports and export assignments are not permitted in module augmentations. 

When going inside that file I can indeed see the TS errors:
image

What would be the cause for this?

@rikharink
Copy link

I'm not getting these exact errors but if I use typescript style import than TSC says the following: This expression is not constructable. Type 'typeof IExtensionReloaderInstance' has no construct signatures.

Are the type definitions perhaps out of date?

@nopmop
Copy link

nopmop commented May 26, 2021

I noticed the problem doesn't happen whenallowJS is disabled in tsconfig.json.
Also, it wasn't happening with allowJS enabled and typescript 3.8.3.

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

3 participants