I published my first package using npm. However, when I import it in Codesandbox it gives me a warning
Error when converting '/node_modules/protected-react-routes-generators/src/index.js' esmodule to commonjs: Cannot read property 'type' of null
This is my github Repo
Also when i installed it from NPM, it gives me this error
I don't know what this error is, any clue ? Thanks!
Babel can't compile jsx extensions. Install:
npm install --save-dev @babel/preset-react
And add to your .babelrc file:
{"presets": ["@babel/preset-react"]}
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments