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

[bug]: In Nextjs 15.0.1 using BlocksRenderer error console Specified module format (CommonJs) is not matching the module format of the source code (EcmaScript Modules) #49

Closed
Rmoreno3 opened this issue Oct 24, 2024 · 3 comments
Labels
issue: bug Issue reporting a bug

Comments

@Rmoreno3
Copy link
Contributor

What version of @strapi/blocks-react-renderer are you using?

Npm version 10.8.2
Node.Js 20.18.0
React 18.3.1
@strapi/blocks-react-render 1.0.1
Browser Google Chrome

What's Wrong?

I'm using Next.js 15.0.1 with React in its LTS version 18.3.1 along with Strapi as a CMS. The error I'm noticing is that after installing @strapi/blocks-react-render and importing it to use the component, I get an error in the Next.js console which tells me that the commonjs type cannot be used.

Captura de pantalla 2024-10-23 224549

To Reproduce

Install the package @strapi/blocks-react-render
import component and using

Expected Behaviour

I expected it to compile normally so I could get the information from the API to consume the JSON.

@macgbluedev
Copy link

I have the same bug

simotae14 added a commit that referenced this issue Nov 4, 2024
change package.json "type" for module Resolving issue #49
@Novailoveyou
Copy link

Same

@jovani-x
Copy link

I have the same, but it runs normally without --turbo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
issue: bug Issue reporting a bug
Projects
None yet
Development

No branches or pull requests

4 participants