We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello. I added this package to my Next.js 13.4.2 project. When running the project, the following error appears:
Error: Failed to load external module react-filerobot-image-editor: SyntaxError: Cannot use import statement outside a module
How can this issue be resolved, and is it possible to use this package with a Next.js project?
The text was updated successfully, but these errors were encountered:
@sajjadramezani1373 try to add the following in your next.config.js file
next.config.js
module.exports = { ..., transpilePackages: ['react-filerobot-image-editor'], ... }
Hope that helps, and please bare in mind the package is for FE usage only, so u will need to avoid its rendering on BE side.
Sorry, something went wrong.
No branches or pull requests
Hello. I added this package to my Next.js 13.4.2 project.
When running the project, the following error appears:
Error: Failed to load external module react-filerobot-image-editor: SyntaxError: Cannot use import statement outside a module
How can this issue be resolved, and is it possible to use this package with a Next.js project?
The text was updated successfully, but these errors were encountered: