Javascriptservices: (0.8.2) React/Redux warning and errors on clean template generation

Created on 8 Feb 2017  路  4Comments  路  Source: aspnet/JavaScriptServices

  • loader option has been deprecated - replace with "use"
  • (displays in console x2) ERROR in [at-loader] node_modules\@types\react-router-redux\index.d.ts:9:10
    TS2305: Module '"C:/repos/playground/serenityhr2/src/node_modules/@types/react-router/index"' has no exported member 'Location'.

Haven't had a chance to dig into it further yet.

Most helpful comment

Thanks for reporting this. I've applied a fix (same fix as suggested here) in generator-aspnetcore-spa version 0.8.3 which will be published shortly is now published. That new package also updates the Webpack configs to eliminate the loader option has been deprecated warnings.

All 4 comments

i have same problem and didnt find appropriate @types version for it

In Package.json I modified
"@types/react-router-redux": "^4.0.30",
to
"@types/react-router-redux": "4.0.30",

This will get things up and running for now.

In addition to what @benhysell said, you can run npm install @types/[email protected] to fix your existing installation until the typings can be fixed.

Thanks for reporting this. I've applied a fix (same fix as suggested here) in generator-aspnetcore-spa version 0.8.3 which will be published shortly is now published. That new package also updates the Webpack configs to eliminate the loader option has been deprecated warnings.

Was this page helpful?
0 / 5 - 0 ratings