Can’t import the other TypeScript file.
I encountered an error when I import a TypeScript file to the other TypeScript file. Please tell me the way to fix it. In following explanation, using this repository.
Steps to reproduce
- Cocos Creator: v2.1.3
- OS X: v10.14.3
- Google Chrome: v77.0.3865.120
- Make a TypeScript HelloWorld Project.
- Make a small TypeScript class doing something.
- Imports TypeScript class made in step 2 to
- Run this game in preview mode and then you can see that this game run as expected.
- But this game broken when you build in debug/release mode otherwise build options. You can see following error at browser console: