Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ReferenceError on fresh install #1

Open
nacho-carnicero opened this issue Apr 8, 2022 · 1 comment
Open

ReferenceError on fresh install #1

nacho-carnicero opened this issue Apr 8, 2022 · 1 comment

Comments

@nacho-carnicero
Copy link

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!

@TheDudeAbides76
Copy link

I get the same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants