You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error [ERR_REQUIRE_ESM]: require() of ES Module C:\Users\Dusk Light\Desktop\test-express\node_modules\query-string\index.js from C:\Users\Dusk Light\Desktop\test-express\index.ts not supported.
Instead change the require of index.js in C:\Users\Dusk Light\Desktop\test-express\index.ts to a dynamic import() which is available in all CommonJS modules.
at require.extensions.<computed> [as .js] (C:\Users\Dusk Light\Desktop\test-express\node_modules\ts-node\dist\index.js:851:20)
at Object.<anonymous> (C:\Users\Dusk Light\Desktop\test-express\index.ts:32:40)
at m._compile (C:\Users\Dusk Light\Desktop\test-express\node_modules\ts-node\dist\index.js:857:29)
at require.extensions.<computed> [as .ts] (C:\Users\Dusk Light\Desktop\test-express\node_modules\ts-node\dist\index.js:859:16)
at phase4 (C:\Users\Dusk Light\Desktop\test-express\node_modules\ts-node\dist\bin.js:466:20)
at bootstrap (C:\Users\Dusk Light\Desktop\test-express\node_modules\ts-node\dist\bin.js:54:12)
at main (C:\Users\Dusk Light\Desktop\test-express\node_modules\ts-node\dist\bin.js:33:12)
at Object.<anonymous> (C:\Users\Dusk Light\Desktop\test-express\node_modules\ts-node\dist\bin.js:579:5) {
code: 'ERR_REQUIRE_ESM'
}
The text was updated successfully, but these errors were encountered:
Following code is generating an error when run on type-script
Output:
The text was updated successfully, but these errors were encountered: