Skip to content Skip to sidebar Skip to footer

Typescript Error On Compilation With Webpack

I am getting an error with typescript compilation and I have no clue where its coming from - I have tried many different combinations of tsconfig.json setups but I always get the s

Solution 1:

You installed typings for webpack-env and node -- those two modules both have ambient declarations for require and module. Tsc is complaining that require/module can't be re-declared with different types (lines 176 and 225 of webpack-env/index.d.ts). Are you really using webpack-env typings? Try removing webpack-env/index.d.ts and see.


Post a Comment for "Typescript Error On Compilation With Webpack"