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
C:\Users\aaron\Test\node\ts-node-esm-test>npm run start
> ts-node-esm-test@0.0.1 start
> nodemon --exec node --no-warnings=ExperimentalWarning --loader ts-node/esm src/index.ts
[nodemon] 3.1.0
[nodemon] to restart at any time, enter `rs`
[nodemon] watching path(s): *.*
[nodemon] watching extensions: ts,json
[nodemon] starting `node --no-warnings=ExperimentalWarning --loader ts-node/esm src/index.ts`
file:///C:/Users/aaron/Test/node/ts-node-esm-test/src/index.ts:5
Object.defineProperty(exports, "__esModule", { value: true });
^
ReferenceError: exports is not defined in ES module scope
at file:///C:/Users/aaron/Test/node/ts-node-esm-test/src/index.ts:5:23
at ModuleJob.run (node:internal/modules/esm/module_job:218:25)
at async ModuleLoader.import (node:internal/modules/esm/loader:329:24)
at async loadESM (node:internal/process/esm_loader:28:7)
at async handleMainPromise (node:internal/modules/run_main:113:12)
Node.js v20.11.1
[nodemon] app crashed - waiting for file changes before starting...
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: