Skip to content

HMR-Loader triggers error linting with bootstrap #6

Open

Description

@jsgoupil

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,

Activity

  1. cormacrelf commented on Dec 6, 2016

    @cormacrelf

    Add it first.

    (PROD ? [] : ['@angularclass/hmr-loader']).concat(['awesome-typescript-loader', (...)])
    
  2. jsgoupil commented on Dec 6, 2016

    @jsgoupil
    Author

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

  3. cormacrelf commented on Dec 6, 2016

    @cormacrelf

    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.

  4. glebmachine commented on Jan 23, 2017

    @glebmachine

    @cormacrelf yes, it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions