-
Notifications
You must be signed in to change notification settings - Fork 205
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
"npx auto info" failing with "Failed to compile TypeScript: Debug Failure" using auto.config.ts file #2248
Comments
Apparently upgrading ts-node will fix this issue. |
Well, I hoped it would fix the issue but I ams till getting the same build failure in https://github.com/vega/ts-json-schema-generator/actions/runs/3048721411/jobs/4914094811. This is still a bug, I think. |
I think the issue is that a dependency of auto/packages/core/package.json Line 41 in 1bf25a5
If we were to upgrade the loader to https://github.com/Codex-/cosmiconfig-typescript-loader (which sets ts-node as a peer instead of direct dependency ) The other workaround we're trying in the meantime is to use a JSON file instead of a TS file for configuring auto so that the the old loader code doesn't need to run at all. vega/ts-json-schema-generator#1413 |
Looks like there even is a pull request: EndemolShineGroup/cosmiconfig-typescript-loader#215 but no updates. Maybe auto needs to use a different library that is more maintained. |
Also had to stop using the TS config due to this, which is a shame since having typings available was really nice. Looks like that library was archived October 2, 2022. The cosmiconfig README recommends a fork of that as a replacement: https://github.com/codex-/cosmiconfig-typescript-loader |
Would you be interested In upgrading that for us?
…On Thu, Sep 14, 2023 at 4:22 AM Mike Matuszak ***@***.***> wrote:
Also had to stop using the TS config due to this, which is a shame since
having typings available was really nice. Looks like that library was
archived October 2, 2022. The cosmiconfig README recommends a fork of that
as a replacement: https://github.com/codex-/cosmiconfig-typescript-loader
—
Reply to this email directly, view it on GitHub
<#2248 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAJDEBG24SGQ52FPAWISWZLX2LSI7ANCNFSM56223VLQ>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Yeah, looks like a pretty straightforward replacement. I think I can find some time in the next week or so to get a PR up. |
Describe the bug
Getting the following error when running
npx auto info
:To Reproduce
Setup auto in an existing project via the instructions in the docs, then create a TypeScript config file:
auto.config.ts
:Using
.auto
with this works:Expected behavior
Should output info about auto
Screenshots
Environment information:
Additional context
Full stack trace:
The text was updated successfully, but these errors were encountered: