epicweb-dev / epicweb-dev/react-and-the-vanishing-network
ReferenceError: File is not defined (File constructor is part of the browser environment and is not natively available in Node.js)
Open
- Dominant language
- JavaScript
- Stars
- 21
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Description
**Where**: react-and-the-vanishing-network/exercises/04.modern-react/01.solution.rsc/index.js -> line 192
**Error**: ReferenceError: File is not defined
**Problem**: File constructor is part of the browser environment and is not natively available in Node.js
**Solution**: Could be install a library that polyfills the File class -> I used 'file-api', that way the change is one line.
`import { File } from 'file-api';`
I hope it helps, cheers!
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.