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

The method mounted on global in the ES Modules environment throws an error #461

Open
WoJiaoFuXiaoYun opened this issue Apr 1, 2024 · 0 comments

Comments

@WoJiaoFuXiaoYun
Copy link

When I import litegraph.js in vite and encounter an error, I traced the code and found that the methods are mounted through global, while in the vite development environment, they are loaded using EMS.I think it should be this problem.

litegraph.js:16882  Uncaught ReferenceError: clamp is not defined
    at WidgetNumber.onMouseUp (litegraph.js:16882:12)
    at LGraphCanvas.processMouseUp (litegraph.js:6910:26)
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

1 participant