[go: nahoru, domu]

Skip to content

Commit

Permalink
Add troubleshooting info to README. Remove redundant script
Browse files Browse the repository at this point in the history
  • Loading branch information
joshwcomeau committed Jun 16, 2022
1 parent 1262992 commit eb92022
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,27 @@ npm run start

Once running, you can visit storybook at http://localhost:6006.

## Troubleshooting

You may get an error when running the `start` script that looks like this:

```
Error: error:0308010C:digital envelope routines::unsupported
at new Hash (node:internal/crypto/hash:67:19)
at Object.createHash (node:crypto:130:10)
```

You can fix this issue either by downgrading to Node 16, or by updating the `package.json` file as follows:

```diff
"scripts": {
- "start": "start-storybook -p 6006 -s public",
+ "start": "NODE_OPTIONS=--openssl-legacy-provider start-storybook -p 6006 -s public",
},
```

For more info, check out the [Troubleshooting Guide](https://courses.joshwcomeau.com/troubleshooting) on the course platform.

## The Components

### ProgressBar
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"styled-components": "5.2.1"
},
"scripts": {
"storybook": "start-storybook -p 6006 -s public",
"start": "start-storybook -p 6006 -s public"
},
"eslintConfig": {
Expand Down

0 comments on commit eb92022

Please sign in to comment.