We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Just when I was thinking TS/node ecosystem isn't too bad, this happened. I had a sudden need for a REPL, as I am used to it from Python:
~/W/r/rwdom/domlib master• ↑2 [1] yarn run ts-node --files --esm -T yarn run v1.22.19 $ /home/skrat/Workspace/xxx/yyy/node_modules/.bin/ts-node --files --esm -T > import { Face } from 'src/rw/dom/model/document'; /home/skrat/Workspace/xxx/yyy/domlib/<repl>.ts:2 export {}; ^^^^^^ Uncaught SyntaxError: Unexpected token 'export' > Face /home/skrat/Workspace/xxx/yyy/domlib/<repl>.ts:1 import { Face } from 'src/rw/dom/model/document'; ^^^^^^ Uncaught: SyntaxError: Cannot use import statement inside the Node.js REPL, alternatively use dynamic import
I feel like a tried a bunch of related CLI flags, various combinations of those, various forms of import etc. all failing on me. What is the problem?
import
{ "compilerOptions": { "allowSyntheticDefaultImports": true, "composite": false, "declaration": true, "esModuleInterop": true, "experimentalDecorators": true, "jsx": "react", "lib": ["es2020", "dom"], "module": "ES2020", "moduleResolution": "node", "outDir": "build", "rootDir": "src", "skipLibCheck": true, "sourceMap": true, "strictBindCallApply": true, "target": "ES2019", "typeRoots": [ "../node_modules/@types" ] }, "include": [ "src/**/*.ts", "src/**/*.tsx" ] }
{}
The text was updated successfully, but these errors were encountered:
duplicate
Sorry, something went wrong.
No branches or pull requests
Just when I was thinking TS/node ecosystem isn't too bad, this happened. I had a sudden need for a REPL, as I am used to it from Python:
I feel like a tried a bunch of related CLI flags, various combinations of those, various forms of
import
etc. all failing on me. What is the problem?Specifications
The text was updated successfully, but these errors were encountered: