Problem since upgrading to latest sapphirejs and TS 5.0

After upgrading to the latest version of sapphire, it is raining errors like "ESM syntax is not allowed in a CommonJS module when 'verbatimModuleSyntax' is enabled." or "A top-level 'export' modifier cannot be used on value declarations in a CommonJS module when 'verbatimModuleSyntax' is enabled.". I amended my tsconfig to this post.
Solution:
oh it seems like it worked to remove the module commonjs line. I will test this, and then close this.
Jump to solution
2 Replies
Solution
Durus
Durus14mo ago
oh it seems like it worked to remove the module commonjs line. I will test this, and then close this.
Durus
Durus14mo ago
Solved it, I'll close this now.