To try this, run npm start
Last active
April 6, 2022 13:59
-
-
Save cspotcode/fad6f0d170067ea67e9835cfeedf235f to your computer and use it in GitHub Desktop.
P.S: Ran the cmd without nodemon as well, same error
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import './other'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"watch": ["src/"], | |
"ext": "ts,json", | |
"exec": "node --loader ts-node/esm --experimental-specifier-resolution=node src/index.ts", | |
"events": { | |
"start": "cls || clear" | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export {}; | |
console.log('hello from other'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "multibot", | |
"version": "0.0.1", | |
"description": "A multi-purpose bot without premiums.", | |
"type": "module", | |
"scripts": { | |
"start": "cross-env NODE_OPTIONS=--experimental-specifier-resolution=node ts-node ./index.ts" | |
}, | |
"devDependencies": { | |
"cross-env": "^7.0.3", | |
"ts-node": "^10.7.0", | |
"typescript": "^4.6.2" | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"compilerOptions": { | |
"target": "ESNext", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */ | |
"module": "ESNext", /* Specify what module code is generated. */ | |
"moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */ | |
}, | |
"ts-node": { | |
"esm": true | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment