The course was published using create-react-app 1.
Create-react-app 3 involves the following breaking changes that aren't yet reflected in the course:
NOTE: Checked boxes below signify patched, but need to be published and uploaded.
In summary, do this:
"babel": {
"presets": [
[
"@babel/preset-env",
{
"modules": "commonjs"
}
],
[
"react-app",
{
"helpers": false,
"absoluteRuntime": false
}
]
]
},
The course was published using create-react-app 1.
Create-react-app 3 involves the following breaking changes that aren't yet reflected in the course:
NOTE: Checked boxes below signify patched, but need to be published and uploaded.
react-test-rendererversion that matches your React version. Check package.json to see the version of React you're using. For example, if you're running React 16.8.0, thennpm install react-test-renderer@16.8.0.@babel/runtimeas a dependency of your component library if you do so."@babelnamespace. So, check your package.json for the version of@babel/coreinstalled by create-react-app, and install the corresponding versions of@babel/preset-envand@babel/cli. For example, if@babel/core 7.1.0is installed, then run this:npm i @babel/preset-env@7.1.0 @babel/cli@7.1.0.@babel/env(instead ofbabel-env)In summary, do this: