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:Jump to solution
oh it seems like it worked to remove the module commonjs line. I will test this, and then close this.
2 Replies