Open
Description
I tried to install this library on a new project and got this error:
yarn dev
ready - started server on 0.0.0.0:3000, url: http://localhost:3000
event - compiled client and server successfully in 1074 ms (619 modules)
wait - compiling /_error (client and server)...
event - compiled client and server successfully in 178 ms (620 modules)
wait - compiling / (client and server)...
event - compiled client and server successfully in 1325 ms (1001 modules)
error - ReferenceError: exports is not defined in ES module scope
This file is being treated as an ES module because it has a '.js' file extension and '/home/nacho-carnicero/git/telco-analysis/node_modules/@react-ol/fiber/package.json' contains "type": "module". To treat it as a CommonJS script, rename it to use the '.cjs' file extension.
error - ReferenceError: exports is not defined in ES module scope
This file is being treated as an ES module because it has a '.js' file extension and '/home/nacho-carnicero/git/telco-analysis/node_modules/@react-ol/fiber/package.json' contains "type": "module". To treat it as a CommonJS script, rename it to use the '.cjs' file extension.
error - ReferenceError: exports is not defined in ES module scope
This file is being treated as an ES module because it has a '.js' file extension and '/home/nacho-carnicero/git/telco-analysis/node_modules/@react-ol/fiber/package.json' contains "type": "module". To treat it as a CommonJS script, rename it to use the '.cjs' file extension.
The weird thing is that I tried installing this library a week ago on a different project and everything worked, but now in that same project where the library worked I cleaned the yarn cache and reinstalled all my modules and it does not work anymore, yet there haven't been new releases to npm, so I don't get what's wrong.
Let me know if you need additional information!
Metadata
Assignees
Labels
No labels