Railway build fails with Type error (implicit 'any' type). #5467
Unanswered
mellkior
asked this question in
Self-Hosting
Replies: 1 comment
-
|
I'm facing the same issue on Railway when building Cal. Using your fix for now, but not sure if it will cause problems down the line. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Issue Summary
Railway 1-click deployment fails with build error:
Type error: Could not find a declaration file for module 'openapi-snippet'. '/app/node_modules/openapi-snippet/index.js' implicitly has an 'any' type.Steps to Reproduce
Technical details
I solved the problem by editing apps/swagger/tsconfig.json to allow implicit 'any' types with
"noImplicitAny": false. The edited tsconfig.json looks like this:I am not a typescript expert, so I'm not sure if this is a good solution or a hack, but the Railway build and deployment worked after this change.
Happy to open a PR if desired.
Beta Was this translation helpful? Give feedback.
All reactions