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

Console warning #89

Open
uibprodo opened this issue Nov 30, 2023 · 5 comments
Open

Console warning #89

uibprodo opened this issue Nov 30, 2023 · 5 comments
Labels
enhancement New feature or request

Comments

@uibprodo
Copy link

Im using the module in a next js (13.4.7 - app router) application. Im getting this warning on the dev server console

./node_modules/@hugocxl/react-to-image/dist/chunk-RQMCT6SI.js
Critical dependency: require function is used in a way in which dependencies cannot be statically extracted

Import trace for requested module:
./node_modules/@hugocxl/react-to-image/dist/chunk-RQMCT6SI.js
./node_modules/@hugocxl/react-to-image/dist/index.js

Im using the useToCanvas canvas hook

@hugocxl
Copy link
Owner

hugocxl commented Nov 30, 2023

@uibprodo does the warning prevent the hook from being used correctly?

@uibprodo
Copy link
Author

@hugocxl it works fine (Its a really good module) checking out whether its a known issue and if theres a way to mitigate it

@hugocxl hugocxl added the enhancement New feature or request label Nov 30, 2023
@hugocxl
Copy link
Owner

hugocxl commented Nov 30, 2023

Mmm Next is shipping so many breaking changes lately is difficult to keep up to date with the framework.
I'll try to give it a look when I find some time, but in the meantime I'll mark it as enhancement since it does not prevent the lib from being used.

@kitze
Copy link

kitze commented Jan 19, 2024

@hugocxl this library looks amazing. I'm getting this error when I try to use it though :(
CleanShot 2024-01-19 at 13 08 55@2x

@hugocxl
Copy link
Owner

hugocxl commented Jan 19, 2024

Hi @kitze! Could you provide more info and possibly a reproducible example? That would help to dig into the issue

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

No branches or pull requests

3 participants