error TS5109: Option 'moduleResolution' must be set to 'Node16'

I come accross this framework and wanted to try out, found out i cant :D Thats aside, here are some info: After i added that to tsconfig.json, it cant compile with error: error TS1287: A top-level 'export' modifier cannot be used on value declarations in a CommonJS module when 'verbatimModuleSyntax' is enabled. Tested: Windows 11 / Debian 11 NodeJS 16.x/20.x npm/yarn always same result Sooo, not much sure what to do here... Any ideas are welcomed!
2 Replies
Favna
Favna10mo ago
This is due to breaking changes in TS 5.2 and will be fixed in an upcoming release. For now force TS to 5.1. Claim the Ping me for announcements role through "Channels and roles" to get notified in #Announcements when it's available. edit: Released as per notice in #Announcements Sidenote you should update to Node 18. Node16 is EOL is September.
zekywolf
zekywolf10mo ago
Yeaa, my main node is version 20.x, Sooo, how should i force TS 5.1? :D