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
ts-node won't recognize typings installed via npm, such as npm install @types/node
npm install @types/node
to reproduce create a typescript file that imports or uses node modules or globals such as:
import * as path from 'path'; console.log(__dirname);
and run npm -D install @types/node and then ts-node test.ts This will result in these compile errors:
npm -D install @types/node
ts-node test.ts
TSError: ⨯ Unable to compile TypeScript test.ts (1,23): Cannot find module 'path'. (2307) test.ts (2,13): Cannot find name '__dirname'. (2304)
The text was updated successfully, but these errors were encountered:
Seems like a duplicate of #216.
Sorry, something went wrong.
No branches or pull requests
ts-node won't recognize typings installed via npm, such as
npm install @types/node
to reproduce create a typescript file that imports or uses node modules or globals such as:
and run
npm -D install @types/node
and thents-node test.ts
This will result in these compile errors:The text was updated successfully, but these errors were encountered: