Skip to content

Incompatibility typings with webpack 4.27.1 #110

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

Closed
TheAifam5 opened this issue Dec 15, 2018 · 3 comments · Fixed by #135
Closed

Incompatibility typings with webpack 4.27.1 #110

TheAifam5 opened this issue Dec 15, 2018 · 3 comments · Fixed by #135
Milestone

Comments

@TheAifam5
Copy link

webpack-merge version: 4.1.5

TS Error:

TSError: ⨯ Unable to compile TypeScript:
config/index.ts(11,5): error TS2345: Argument of type 'import("webui/node_modules/@types/webpack/index").Configuration' is not assignable to parameter of type 'import("webui/node_modules/@types/webpack-merge/node_modules/@types/webpack/index.d.ts").Configuration'.
  Types of property 'devtool' are incompatible.
    Type 'boolean | "eval" | "inline-source-map" | "cheap-eval-source-map" | "cheap-source-map" | "cheap-module-eval-source-map" | "cheap-module-source-map" | "eval-source-map" | ... 35 more ... | undefined' is not assignable to type 'boolean | "eval" | "inline-source-map" | "cheap-eval-source-map" | "cheap-source-map" | "cheap-module-eval-source-map" | "cheap-module-source-map" | "eval-source-map" | ... 33 more ... | undefined'.
      Type '"inline-cheap-source-map"' is not assignable to type 'boolean | "eval" | "inline-source-map" | "cheap-eval-source-map" | "cheap-source-map" | "cheap-module-eval-source-map" | "cheap-module-source-map" | "eval-source-map" | ... 33 more ... | undefined'.
@bebraw
Copy link
Member

bebraw commented Dec 15, 2018 via email

@logusgraphics
Copy link

This is a transpiration error. Nothing related with devtools. Seems that @types/webpack has updated its configuration object definition and seems incompatible with @types/webkpack-merge definitions

@bebraw
Copy link
Member

bebraw commented Jun 29, 2020

This will get fixed in v5 (ported to TS).

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

Successfully merging a pull request may close this issue.

3 participants