I have a problem that I get this error when I want to output my project.
I do not know if this problem is related to forums or not.
"next": "^11.0.0"
"react": "^17.0.2"
import { getGlobalMatrix, Matrix2D } from "./utils/matrix.js";
That error might be coming from server side rendering as client side scripts won't work. Try checking for a window object first like this...
if (typeof window !== "undefined") {
gsap.registerPlugin(Draggable, InertiaPlugin);
}
Or register it inside an effect as those won't run server side.
useEffect(() => {
gsap.registerPlugin(Draggable, InertiaPlugin);
}, []);