Skip to content
New issue

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

yarn cdk deploy throws "Cannot find module 'typescript'" error #46

Closed
trivikr opened this issue Aug 14, 2021 · 1 comment · Fixed by #48
Closed

yarn cdk deploy throws "Cannot find module 'typescript'" error #46

trivikr opened this issue Aug 14, 2021 · 1 comment · Fixed by #48
Labels
bug Something isn't working

Comments

@trivikr
Copy link
Contributor

trivikr commented Aug 14, 2021

Describe the bug

yarn cdk deploy throws "Cannot find module 'typescript'" error.

Steps to reproduce

$ yarn
...

$ yarn build:backend

  dist/updateNote/app.js  243.0kb
  dist/createNote/app.js  242.8kb
  dist/deleteNote/app.js  242.4kb
  dist/getNote/app.js     240.6kb
  dist/listNotes/app.js   238.5kb

⚡ Done in 98ms

$ yarn cdk deploy

Observed behavior

Throws error:

npx: installed 14 in 5.897s
Cannot find module 'typescript'
Require stack:
- /Users/trivikr/.npm/_npx/8222/lib/node_modules/ts-node/dist/index.js
- /Users/trivikr/.npm/_npx/8222/lib/node_modules/ts-node/dist/repl.js
- /Users/trivikr/.npm/_npx/8222/lib/node_modules/ts-node/dist/bin.js
Subprocess exited with error 1

Expected behavior

yarn cdk deploy should be successful.

@trivikr trivikr added the bug Something isn't working label Aug 14, 2021
@trivikr
Copy link
Contributor Author

trivikr commented Aug 14, 2021

Refs: TypeStrong/ts-node#1426

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant