Construct 3 r361

You're viewing a single comment in a conversation. View all the comments
  • 2 Comments

  • Order by
  • The 'import { Utils } from "./utils";' in the 'ts' file was translated into a' js' file and changed to 'import { Utils } from "./utils";', but 'import { Utils } from "./utils";' cannot function properly because it lacks the '.js' suffix name

      • [-] [+]
      • 1
      • Ashley's avatar
      • Ashley
      • Construct Team Founder
      • 1 points
      • (0 children)

      Just import as "./utils.js" even in your TypeScript file - then it's correct after compilation, and TypeScript still knows that you mean to import "./utils.ts" in your TypeScript code.