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

Missing Webpack declaration in /dist/**/*.d.ts #36

Closed
Xceno opened this issue Nov 23, 2017 · 3 comments
Closed

Missing Webpack declaration in /dist/**/*.d.ts #36

Xceno opened this issue Nov 23, 2017 · 3 comments

Comments

@Xceno
Copy link

Xceno commented Nov 23, 2017

I'm submitting a bug report

  • Library Version: 2.1.0

Please tell us about your environment:

  • Operating System: Windows 10

  • Node Version: 6.9.1

  • NPM Version: 3.10.8
  • yarn Version: 1.3.2

  • Webpack: 3.4.1

  • Browser: all

  • Language: TypeScript 2.6.1

Current behavior:
The type definition is missing a Webpack reference.

[at-loader] Checking finished with 1 errors
[at-loader] ./node_modules/aurelia-loader-webpack/dist/commonjs/aurelia-loader-webpack.d.ts:31:51
TS2503: Cannot find namespace 'Webpack'.
Link to source

Expected/desired behavior:

  • Reproducing the error

    • Download the source of this repo
    • open any /dist/**/aurelia-loader-webpack.d.ts
    • It will complain about the missing Webpack namespace at line 31.
  • What is the expected behavior?
    The typings should be able to resolve the Webpack namespace

  • What is the motivation / use case for changing the behavior?
    Apps that use this package nonetheless compile successfully, but it's confusing to see this error all the time.
    It seems to be easily resolved by copying webpack-hot-interface.d.ts into dist/**/

@jods4
Copy link
Contributor

jods4 commented Nov 23, 2017

This is a bug in at-loader.
We worked around it by temporarily disabling the types in [email protected].
I suspect you use RC3 or before (latest is RC5).

@jods4
Copy link
Contributor

jods4 commented Nov 23, 2017

Closing as a duplicate of aurelia/webpack-plugin#118

@jods4 jods4 closed this as completed Nov 23, 2017
@Xceno
Copy link
Author

Xceno commented Nov 24, 2017

Thanks for pointing me in the right direction once again!

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

2 participants