s-ol’s avatars-ol’s Twitter Archive—№ 1,741

        1. …in reply to @totallyRonja
          @totallyRonja @Kernalphage ok, I haven't tested it thoroughly but I got that same error and found a way around it. Basically by default typescript assumes that the browser doesn't know what classes even are and compiles it down to old JS that is incompatible with how actual classes want to be treated
      1. …in reply to @S0lll0s
        @totallyRonja @Kernalphage how it is possible that they do this and never realized and or cared to fix it, i don't know. Anyhow, you need to set the typescript output settings to output "ES6"-level JavaScript. but for some reason that will break importing, unless you also set "moduleResolution" to "Node"
    1. …in reply to @S0lll0s
      @totallyRonja @Kernalphage in Conclusion, your tsconfig.json needs to be: { "compilerOptions": { "sourceMap": true, "target": "es6", "moduleResolution": "Node" } }
  1. …in reply to @S0lll0s
    @totallyRonja @Kernalphage i can share my test setup in a gist if you would like, but i'm fairly certain that whatever you have is actually perfect. JS development is just absolutely horrifyingly nuts, especially when it comes to this re/down/trans/???-compilation stuff and all the different es* versions