Jump to content
Search Community

NaughtyDog

Members
  • Posts

    3
  • Joined

  • Last visited

NaughtyDog's Achievements

0

Reputation

  1. I'm just trying to figure out what the problem is, and how to go about fixing it. I got the following response from the official Layabox. The engine is ES6 enabled and automatically handles the import and export of src code at compile time. However, there have been issues with the browser's support for imports and exports, so we don't recommend developers use it outside of the user folder (i.e. SRC). For browser support, see MDN. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/export https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import I loaded the GSAP class library in the index.js file and then embedded index.js in the index.html file. in the MDN instructions, it explicitly says that the export statement cannot be used in the embed script. I'm trying other methods that will allow me to successfully reference the GSAP class library in the SRC folder. Do you have any good ideas? Please forgive my stubbornness, and in any case, thank you for taking the time out of your busy schedule to respond to me. Thank you!
  2. I imported the class library under the umd folder in gsap-member.zip into the TypeScript project in Layabox, compiled it and ran it successfully. But if I import the class libraries in the esm folder into the TypeScript project, or if I import the class libraries in the src folder into the TypeScript project, Either of these two ways, the following error occurs after compiling the run.
  3. How to use GSAP in the typescript project of layabox ? layabox is an HTML5 engine. https://www.layabox.com/?language=en
×
×
  • Create New...