8Observer8 Posted January 24, 2017 Share Posted January 24, 2017 Hello I started to study this tutorial: Advanced Phaser and TypeScript Projects I want to write a code on JSFiddle. I started here: https://jsfiddle.net/8Observer8/bjss7bwj/ But I see the error in console: _super is not defined Please, help me. Link to comment Share on other sites More sharing options...
mattstyles Posted January 24, 2017 Share Posted January 24, 2017 Does JSFiddle even support typescript? As it involves a build process my guess is no. Maybe try using webpackbin instead? its designed to run various pre-configured build processes for you. 8Observer8 1 Link to comment Share on other sites More sharing options...
8Observer8 Posted January 24, 2017 Author Share Posted January 24, 2017 1 hour ago, mattstyles said: Does JSFiddle even support typescript? Yep https://jsfiddle.net/8Observer8/2k2a9b8j/ 1 hour ago, mattstyles said: Maybe try using webpackbin instead? Thank you! I will try. But I want to know: can I use Phaser TS in JSFiddle or not? Link to comment Share on other sites More sharing options...
mattstyles Posted January 24, 2017 Share Posted January 24, 2017 I tried a minimal example on jsfiddle with just an extended class and it did not like super there either, yet running converting myself with typescript yielded a perfectly good JS file so I can only guess that the typescript transpilation that jsfiddle runs is either broken or does not support using classes and/or super. I couldnt find any error reports about this behaviour, but nor could I find any examples on jsfiddle that use classes and super. Link to comment Share on other sites More sharing options...
Recommended Posts