HMR-Loader triggers error linting with bootstrap
By adding this loader:
.concat(isProd ? [] : '@angularclass/hmr-loader'),
I get the following errors when using webpack:
ERROR in ./app/main.ts
(24,344): error TS7006: Parameter 'status' implicitly has an 'any' type.
ERROR in ./app/main.ts
(24,505): error TS7006: Parameter 'err' implicitly has an 'any' type.
ERROR in ./app/main.ts
(24,510): error TS7006: Parameter 'outdatedModules' implicitly has an 'any' type.
ERROR in ./app/main.ts
(24,697): error TS7006: Parameter 'dependencies' implicitly has an 'any' type.
ERROR in ./app/main.ts
(24,826): error TS7006: Parameter 'store' implicitly has an 'any' type.
tsconfig.json has "noImplicitAny": true,
Add it first.
(PROD ? [] : ['@angularclass/hmr-loader']).concat(['awesome-typescript-loader', (...)])
@cormacrelf what would this change? It's the output that causes an error with tsconfig.json checking for no Implicit any.
I have no idea why it works, but it does. I initially put @angularclass/hmr-loader first without a PROD switch, but this started happening when I put it last with the switch. You are witnessing the magic of front-end JS config. Behold.
@cormacrelf yes, it works.