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

1 messages · Page 1 of 1 (latest)

jade orchid
#

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!

terse oliveBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

versed falcon
#

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.

terse oliveBOT