Importing in a typescript project #312
-
Hello! I'm trying to use this in my phaser project using typescript via an import statement and I get the following error: My import statement is: I've tried both GridEngine.esm.min.js and GridEngine.min.js, as well as copying some of the various .d.ts files into the folder with it, with no luck. I'm sure the solution is going to be obvious, but I'm new to all this typescript stuff and hit a roadblock. Can anyone help? :) Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Are you using yarn or npm? In that case I would recommend to add grid-engine to your dependencies and just import it. In your terminal:
Then you can import it like:
|
Beta Was this translation helpful? Give feedback.
Are you using yarn or npm? In that case I would recommend to add grid-engine to your dependencies and just import it.
In your terminal:
Then you can import it like: