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: require is not defined in ES module scope, you can use import instead #238

Closed
majoncas-ue opened this issue Jan 15, 2025 · 4 comments
Labels
bug Something isn't working

Comments

@majoncas-ue
Copy link

Describe the bug

Since the last update (3.7.0 version), when trying to run tests in my application, I receive the attached error (see "Logs, error output, etc." section).
This refers to this change: v3.6.1...v3.7.0#diff-a210f4dc1ff876b56a2a9db45167223854fcbf9b9dc6bd0b4e92433582a3d6f8R5

Steps to reproduce the bug

No response

Expected behavior

No response

Logs, error output, etc.

ReferenceError: require is not defined in ES module scope, you can use import instead
This file is being treated as an ES module because it has a '.js' file extension and '...node_modules/@unleash/proxy-client-react/package.json' contains "type": "module". To treat it as a CommonJS script, rename it to use the '.cjs' file extension.

Screenshots

No response

Additional context

No response

Unleash version

No response

Subscription type

Open source

Hosting type

Hosted by Unleash

SDK information (language and version)

No response

@majoncas-ue majoncas-ue added the bug Something isn't working label Jan 15, 2025
@majoncas-ue
Copy link
Author

Oh, I saw that you have already a fix on it's way (#237) so I'm closing this ticket

@github-project-automation github-project-automation bot moved this from New to Done in Issues and PRs Jan 15, 2025
@thomasheartman
Copy link
Contributor

Yeah, sorry about that. We noticed yesterday as well. Will get a fix out today.

@thomasheartman
Copy link
Contributor

Version 3.7.1 with the fix for this is out now 🙋🏼 Sorry about the inconvenience, and thanks for reporting the issue 🙏🏼

@majoncas-ue
Copy link
Author

Version 3.7.1 with the fix for this is out now 🙋🏼 Sorry about the inconvenience, and thanks for reporting the issue 🙏🏼

No worries! Thank you for your quick fix :-) !!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

No branches or pull requests

2 participants