# Redux-starter code doesn't run

**URL:** <https://forum.codewithmosh.com/t/redux-starter-code-doesnt-run/9912>\
**Category:** Redux\
**Created:** [January 13, 2022, 7:27am UTC](https://forum.codewithmosh.com/t/redux-starter-code-doesnt-run/9912 "2022-01-13T07:27:50Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![cqi123](https://avatars.discourse-cdn.com/v4/letter/c/54ee81/32.png) [@cqi123](https://forum.codewithmosh.com/u/cqi123)\
**Post date:** [January 13, 2022, 7:27am UTC](https://forum.codewithmosh.com/t/redux-starter-code-doesnt-run/9912/1 "2022-01-13T07:27:50Z")

</div>

Hi, I downloaded the starter files and when I ran ‘npm i’ then ‘npm start’ in the redux-starter folder, it doesn’t run on localhost 9000. it doesn’t run anywhere.

---

<div class="post-metadata">

**Author:** ![eelsholz](https://avatars.discourse-cdn.com/v4/letter/e/439d5e/32.png) [@eelsholz](https://forum.codewithmosh.com/u/eelsholz)\
**Post date:** [January 14, 2022, 1:44am UTC](https://forum.codewithmosh.com/t/redux-starter-code-doesnt-run/9912/2 "2022-01-14T01:44:11Z")

</div>

What do you see after you run `npm start`? Any output, any errors?

---

<div class="post-metadata">

**Author:** ![Miraj](https://avatars.discourse-cdn.com/v4/letter/m/57b2e6/32.png) [@Miraj](https://forum.codewithmosh.com/u/Miraj)\
**Post date:** [February 1, 2022, 5:13pm UTC](https://forum.codewithmosh.com/t/redux-starter-code-doesnt-run/9912/3 "2022-02-01T17:13:14Z")

</div>

I am facing the same problem. after running npm start the terminal shows “compiled successfully” but nothing comes in the browser.

---

<div class="post-metadata">

**Author:** ![P\_Path](https://avatars.discourse-cdn.com/v4/letter/p/bc8723/32.png) [@P\_Path](https://forum.codewithmosh.com/u/P_Path)\
**Post date:** [April 9, 2024, 9:10pm UTC](https://forum.codewithmosh.com/t/redux-starter-code-doesnt-run/9912/4 "2024-04-09T21:10:24Z")

</div>

were you able to resolve the issue?  
also where can i find the redux-starter code ?  
Thanks in advance.

---

<div class="post-metadata">

**Author:** ![techabie](https://avatars.discourse-cdn.com/v4/letter/t/a88e4f/32.png) [@techabie](https://forum.codewithmosh.com/u/techabie)\
**Post date:** [April 11, 2024, 10:13pm UTC](https://forum.codewithmosh.com/t/redux-starter-code-doesnt-run/9912/5 "2024-04-11T22:13:36Z")

</div>

I found the tutorial on Youtube. The link to the file is there.

I have the same problem. My localhost page doesn’t load. There are some dependency issues going on. It asks if I want to use npm audit fix --force. I did but it still not working.  
After running npm start command, this is what it says:

> redux-starter@1.0.0 start  
> webpack-dev-server --config ./webpack.config.js

i ｢wds｣: Project is running at [http://localhost:9000/](http://localhost:9000/)  
i ｢wds｣: webpack output is served from /  
i ｢wds｣: Content not from webpack is served from C:\Users\tranp\Downloads\redux-starter (1)\redux-starter\dist  
node:internal/crypto/hash:80  
this[kHandle] = new \_Hash(algorithm, xofLen, algorithmId, getHashCache());  
^

Error: error:0308010C:digital envelope routines::unsupported  
at new Hash (node:internal/crypto/hash:80:19)  
at Object.createHash (node:crypto:139:10)  
at module.exports (C:\Users\tranp\Downloads\redux-starter (1)\redux-starter\node\_modules\webpack\lib\util\createHash.js:135:53)  
at NormalModule.\_initBuildHash (C:\Users\tranp\Downloads\redux-starter (1)\redux-starter\node\_modules\webpack\lib\NormalModule.js:417:16)  
at handleParseError (C:\Users\tranp\Downloads\redux-starter (1)\redux-starter\node\_modules\webpack\lib\NormalModule.js:471:10)  
at C:\Users\tranp\Downloads\redux-starter (1)\redux-starter\node\_modules\webpack\lib\NormalModule.js:503:5  
at C:\Users\tranp\Downloads\redux-starter (1)\redux-starter\node\_modules\webpack\lib\NormalModule.js:358:12  
at C:\Users\tranp\Downloads\redux-starter (1)\redux-starter\node\_modules\loader-runner\lib\LoaderRunner.js:373:3  
at iterateNormalLoaders (C:\Users\tranp\Downloads\redux-starter (1)\redux-starter\node\_modules\loader-runner\lib\LoaderRunner.js:214:10)  
at Array. (C:\Users\tranp\Downloads\redux-starter (1)\redux-starter\node\_modules\loader-runner\lib\LoaderRunner.js:205:4) {  
opensslErrorStack: [  
‘error:03000086:digital envelope routines::initialization error’,  
‘error:0308010C:digital envelope routines::unsupported’  
],  
library: ‘digital envelope routines’,  
reason: ‘unsupported’,  
code: ‘ERR\_OSSL\_EVP\_UNSUPPORTED’  
}

Node.js v20.12.1  
PS C:\Users\tranp\Downloads\redux-starter (1)\redux-starter\> npm start

> redux-starter@1.0.0 start  
> webpack-dev-server --config ./webpack.config.js

i ｢wds｣: Project is running at [http://localhost:9000/](http://localhost:9000/)  
i ｢wds｣: webpack output is served from /  
i ｢wds｣: Content not from webpack is served from C:\Users\tranp\Downloads\redux-starter (1)\redux-starter\dist  
node:internal/crypto/hash:80  
this[kHandle] = new \_Hash(algorithm, xofLen, algorithmId, getHashCache());  
^

Error: error:0308010C:digital envelope routines::unsupported  
at new Hash (node:internal/crypto/hash:80:19)  
at Object.createHash (node:crypto:139:10)  
at module.exports (C:\Users\tranp\Downloads\redux-starter (1)\redux-starter\node\_modules\webpack\lib\util\createHash.js:135:53)  
at NormalModule.\_initBuildHash (C:\Users\tranp\Downloads\redux-starter (1)\redux-starter\node\_modules\webpack\lib\NormalModule.js:417:16)  
at handleParseError (C:\Users\tranp\Downloads\redux-starter (1)\redux-starter\node\_modules\webpack\lib\NormalModule.js:471:10)  
at C:\Users\tranp\Downloads\redux-starter (1)\redux-starter\node\_modules\webpack\lib\NormalModule.js:503:5  
at C:\Users\tranp\Downloads\redux-starter (1)\redux-starter\node\_modules\webpack\lib\NormalModule.js:358:12  
at C:\Users\tranp\Downloads\redux-starter (1)\redux-starter\node\_modules\loader-runner\lib\LoaderRunner.js:373:3  
at iterateNormalLoaders (C:\Users\tranp\Downloads\redux-starter (1)\redux-starter\node\_modules\loader-runner\lib\LoaderRunner.js:214:10)  
at Array. (C:\Users\tranp\Downloads\redux-starter (1)\redux-starter\node\_modules\loader-runner\lib\LoaderRunner.js:205:4) {  
opensslErrorStack: [  
‘error:03000086:digital envelope routines::initialization error’,  
‘error:0308010C:digital envelope routines::unsupported’  
],  
library: ‘digital envelope routines’,  
reason: ‘unsupported’,  
code: ‘ERR\_OSSL\_EVP\_UNSUPPORTED’  
}

Node.js v20.12.1

---

<div class="post-metadata">

**Author:** ![jerommiole](https://avatars.discourse-cdn.com/v4/letter/j/b9bd4f/32.png) [@jerommiole](https://forum.codewithmosh.com/u/jerommiole)\
**Post date:** [June 30, 2024, 4:22am UTC](https://forum.codewithmosh.com/t/redux-starter-code-doesnt-run/9912/6 "2024-06-30T04:22:35Z")

</div>

Here’s the answer from Polycozy

After you run `npm i`, install the latest webpack:  
`npm install webpack@latest webpack-cli@latest webpack-dev-server@latest`,  
and then, modify the “webpack.config.js”:

```auto
devServer: {
  contentBase: path.join(__dirname, "dist"),
  port: 9000
}

```

change to

```auto
devServer: {
  static: {
    directory: path.join(__dirname, "dist")
  },
  port: 9000
}

```

And it’s done. Now you visit [http://localhost:9000/](http://localhost:9000/) to preview the webpage.
