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

HMR-Loader triggers error linting with bootstrap #6

Open
jsgoupil opened this issue Nov 26, 2016 · 4 comments
Open

HMR-Loader triggers error linting with bootstrap #6

jsgoupil opened this issue Nov 26, 2016 · 4 comments

Comments

@jsgoupil
Copy link

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,

@cormacrelf
Copy link

Add it first.

(PROD ? [] : ['@angularclass/hmr-loader']).concat(['awesome-typescript-loader', (...)])

@jsgoupil
Copy link
Author

jsgoupil commented Dec 6, 2016

@cormacrelf what would this change? It's the output that causes an error with tsconfig.json checking for no Implicit any.

@cormacrelf
Copy link

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.

@glebmachine
Copy link

@cormacrelf yes, it works.

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