Skip to content

Commit ec5eef8

Browse files
committed
Update README
1 parent 7968a7f commit ec5eef8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -527,15 +527,15 @@ There are two alternatives to this approach:
527527

528528
### Why am I getting the error `Module not found: Error: Can't resolve 'crypto|fs|os|path'`?
529529

530-
You are using dotenv on the front-end. Webpack < 5 used to include polyfills for core Node.js modules like `crypto`, `fs`, `os`, and `path`. So today, you need to install and configure a polyfill for it.
530+
You are using dotenv on the front-end. Webpack < 5 used to include polyfills for core Node.js modules like `crypto`, `fs`, `os`, and `path`. It doesn't any longer, so these days you need to install and configure a polyfill for it.
531531

532532
```bash
533533
npm install crypto-browserify
534534
```
535535

536536
And then configure it in your webpack config.
537537

538-
```json
538+
```js
539539
resolve.fallback: { "crypto": require.resolve("crypto-browserify") }
540540
```
541541

0 commit comments

Comments
 (0)