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.
![](https://utfs.io/f/da3e981c-acba-4e81-810c-9060a3603490-1nq2cb.png)
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