Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...

chanced

BusinessGreen
  • Posts

    3
  • Joined

  • Last visited

About chanced

chanced's Achievements

  1. import Flip from "gsap/dist/Flip"; resolved it though. Thanks!
  2. import gsap from "gsap"; import Flip from "gsap/Flip"; gsap.registerPlugin(Flip); 500 Cannot use import statement outside a module project_path/node_modules/.pnpm/@gsap+business@3.8.0/node_modules/@gsap/business/Flip.js:12 import { getGlobalMatrix, _getDocScrollTop, _getDocScrollLeft, Matrix2D, _setDoc, _isFixed, _getCTM } from "./utils/matrix.js"; ^^^^^^ SyntaxError: Cannot use import statement outside a module at Object.compileFunction (node:vm:352:18) at wrapSafe (node:internal/modules/cjs/loader:1031:15) at Module._compile (node:internal/modules/cjs/loader:1065:27) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10) at Module.load (node:internal/modules/cjs/loader:981:32) at Function.Module._load (node:internal/modules/cjs/loader:822:12) at Module.require (node:internal/modules/cjs/loader:1005:19) at require (node:internal/modules/cjs/helpers:94:18) at nodeRequire (/project_path/node_modules/.pnpm/vite@2.6.7/node_modules/vite/dist/node/chunks/dep-713b45e1.js:66487:17) at ssrImport (/project_path/node_modules/.pnpm/vite@2.6.7/node_modules/vite/dist/node/chunks/dep-713b45e1.js:66429:20)
×