React MusicStore Sample: Does not run (Error TS2503: Cannot find namespace 'Redux'.) #1167

Closed
opened 2025-08-09 17:19:07 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @hrkeni on 12/20/2016

After running dotnet restore on the root directory and npm install in the sample/react/MusicStore directory, executing dotnet run and navigating to http://localhost:5000/ results in the following exception:

Exception: Call to Node module failed with error: Error: Webpack compilation reported errors. Compiler output follows: Hash: d6c48da890fe591345ab
Version: webpack 1.14.0
Time: 3365ms
Asset Size Chunks Chunk Names
webpack-output.js 111 kB 0 [emitted] main

ERROR in ./ReactApp/configureStore.ts
(19,75): error TS2503: Cannot find namespace 'Redux'.
at <redacted>/work/JavaScriptServices/samples/react/MusicStore/node_modules/aspnet-webpack/LoadViaWebpack.js:111:31
at Compiler.<anonymous> (<redacted>/work/JavaScriptServices/samples/react/MusicStore/node_modules/webpack/lib/Compiler.js:194:14)
at Compiler.emitRecords (<redacted>/work/JavaScriptServices/samples/react/MusicStore/node_modules/webpack/lib/Compiler.js:282:37)
at Compiler.<anonymous> (<redacted>/work/JavaScriptServices/samples/react/MusicStore/node_modules/webpack/lib/Compiler.js:187:11)
at <redacted>/work/JavaScriptServices/samples/react/MusicStore/node_modules/webpack/lib/Compiler.js:275:11
at Compiler.applyPluginsAsync (<redacted>/work/JavaScriptServices/samples/react/MusicStore/node_modules/tapable/lib/Tapable.js:60:69)
at Compiler.afterEmit (<redacted>/work/JavaScriptServices/samples/react/MusicStore/node_modules/webpack/lib/Compiler.js:272:8)
at Compiler.<anonymous> (<redacted>/work/JavaScriptServices/samples/react/MusicStore/node_modules/webpack/lib/Compiler.js:267:14)
at <redacted>/work/JavaScriptServices/samples/react/MusicStore/node_modules/async/lib/async.js:52:16
at Object.async.forEachOf.async.eachOf (<redacted>/work/JavaScriptServices/samples/react/MusicStore/node_modules/async/lib/async.js:236:30)
*Originally created by @hrkeni on 12/20/2016* After running `dotnet restore` on the root directory and `npm install` in the `sample/react/MusicStore` directory, executing `dotnet run` and navigating to `http://localhost:5000/` results in the following exception: ``` Exception: Call to Node module failed with error: Error: Webpack compilation reported errors. Compiler output follows: Hash: d6c48da890fe591345ab Version: webpack 1.14.0 Time: 3365ms Asset Size Chunks Chunk Names webpack-output.js 111 kB 0 [emitted] main ERROR in ./ReactApp/configureStore.ts (19,75): error TS2503: Cannot find namespace 'Redux'. at <redacted>/work/JavaScriptServices/samples/react/MusicStore/node_modules/aspnet-webpack/LoadViaWebpack.js:111:31 at Compiler.<anonymous> (<redacted>/work/JavaScriptServices/samples/react/MusicStore/node_modules/webpack/lib/Compiler.js:194:14) at Compiler.emitRecords (<redacted>/work/JavaScriptServices/samples/react/MusicStore/node_modules/webpack/lib/Compiler.js:282:37) at Compiler.<anonymous> (<redacted>/work/JavaScriptServices/samples/react/MusicStore/node_modules/webpack/lib/Compiler.js:187:11) at <redacted>/work/JavaScriptServices/samples/react/MusicStore/node_modules/webpack/lib/Compiler.js:275:11 at Compiler.applyPluginsAsync (<redacted>/work/JavaScriptServices/samples/react/MusicStore/node_modules/tapable/lib/Tapable.js:60:69) at Compiler.afterEmit (<redacted>/work/JavaScriptServices/samples/react/MusicStore/node_modules/webpack/lib/Compiler.js:272:8) at Compiler.<anonymous> (<redacted>/work/JavaScriptServices/samples/react/MusicStore/node_modules/webpack/lib/Compiler.js:267:14) at <redacted>/work/JavaScriptServices/samples/react/MusicStore/node_modules/async/lib/async.js:52:16 at Object.async.forEachOf.async.eachOf (<redacted>/work/JavaScriptServices/samples/react/MusicStore/node_modules/async/lib/async.js:236:30) ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#1167
No description provided.