pnpm dlx ts-node boop.ts --verbose
Created
July 26, 2023 21:32
-
-
Save tyre/8493803ae8ac4dcd6f942b7ac1966df2 to your computer and use it in GitHub Desktop.
NOOOOOOOOOOde
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 "dotenv/config"; | |
| import { AutoTokenizer } from "@xenova/transformers"; |
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": "playground", | |
| "version": "1.0.0", | |
| "description": "", | |
| "dependencies": { | |
| "@types/node": "20.4.5", | |
| "@xenova/transformers": "2.4.2", | |
| "dotenv": "8.2.0", | |
| "typescript": "^5.1.6" | |
| }, | |
| "main": "index.js", | |
| "scripts": { | |
| "test": "echo \"Error: no test specified\" && exit 1" | |
| }, | |
| "engines": { | |
| "node": ">=18.0.0" | |
| }, | |
| "type": "module", | |
| "keywords": [], | |
| "author": "", | |
| "license": "ISC" | |
| } |
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
| { | |
| "compilerOptions": { | |
| "esModuleInterop": true, | |
| "forceConsistentCasingInFileNames": true, | |
| "allowJs": true, | |
| "isolatedModules": true, | |
| "moduleResolution": "NodeNext", | |
| "module": "NodeNext", | |
| "preserveWatchOutput": true, | |
| "skipLibCheck": true, | |
| "noEmit": true, | |
| "strict": true, | |
| "lib": [ | |
| "es2015", | |
| "dom" | |
| ], | |
| "target": "ES2015" | |
| }, | |
| "ts-node": { | |
| "esm": true | |
| }, | |
| "exclude": [ | |
| "node_modules" | |
| ] | |
| } |
Author
Author
without:
"ts-node": {
"esm": true
},in tsconfig.json:
TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for /Users/tyre77/workspace/llm/ts-hub/playground/mods/boop.ts
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
removing
"type": "module"