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

Breaking changes in 18.19.0: cdk deploy failed to TypeError {ERR_UNKNOW_FILE_EXTENSION]: Unknow file extension "*.ts" #51098

Closed
derekxlu opened this issue Dec 8, 2023 · 2 comments
Labels
wrong repo Issues that should be opened in another repository.

Comments

@derekxlu
Copy link

derekxlu commented Dec 8, 2023

Version

v18.19.0

Platform

Linux

Subsystem

AWS CodePipeline

What steps will reproduce the bug?

Running command
npx aws-cdk deploy --require-approval never
or
cdk deploy --require-approval never

How often does it reproduce? Is there a required condition?

Evey time

What is the expected behavior? Why is that the expected behavior?

Deployment outputs

What do you see instead?

TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for /codebuild/output/src2990238895/src/<appname>/bin/app.ts
    at new NodeError (node:internal/errors:405:5)
    at Object.getFileProtocolModuleFormat [as file:] (node:internal/modules/esm/get_format:136:11)
    at defaultGetFormat (node:internal/modules/esm/get_format:182:36)
    at defaultLoad (node:internal/modules/esm/load:101:20)
    at nextLoad (node:internal/modules/esm/hooks:864:28)
    at load (/codebuild/output/src2990238895/src/<appname>/node_modules/ts-node/dist/child/child-loader.js:19:122)
    at nextLoad (node:internal/modules/esm/hooks:864:28)
    at Hooks.load (node:internal/modules/esm/hooks:447:26)
    at MessagePort.handleMessage (node:internal/modules/esm/worker:196:24)
    at [nodejs.internal.kHybridDispatch] (node:internal/event_target:786:20) {
  code: 'ERR_UNKNOWN_FILE_EXTENSION'
} 

Additional information

Downgrade node to earlier versions, such as v18.18.2 and v18.17.1, resolved the problem.

@dmitry-stepanenko
Copy link

TypeStrong/ts-node#2094

@aduh95
Copy link
Contributor

aduh95 commented Dec 9, 2023

Closing as duplicate of TypeStrong/ts-node#2094

@aduh95 aduh95 closed this as not planned Won't fix, can't repro, duplicate, stale Dec 9, 2023
@aduh95 aduh95 added the wrong repo Issues that should be opened in another repository. label Dec 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wrong repo Issues that should be opened in another repository.
Projects
None yet
Development

No branches or pull requests

3 participants