-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Build issues #4491
Comments
Yeah, the hapi types require the You should be able to fix it by installing the Are you sure it's not activated by |
If joi is required its not a dev dependency, looking in you packet.json its listed as a dev dependency. |
Joi is only required for compiling the typescript types, so it won't be added as a normal dependency. This is similar to the This is indeed a hack, because there is no decent solution until someone takes the time to decouple it in the hapi typings. Again a PR would be welcome. |
Runtime
nodejs
Runtime version
v20.10.0
Module version
v20.10.0
Last module version without issue
No response
Used with
tsoa
Any other relevant information
node_modules/@hapi/hapi/lib/types/route.d.ts:2:68 - error TS2307: Cannot find module 'joi' or its corresponding type declarations.
2 import { ObjectSchema, ValidationOptions, SchemaMap, Schema } from 'joi';
~~~~~
node_modules/@hapi/hapi/lib/types/server/server.d.ts:4:22 - error TS2307: Cannot find module 'joi' or its corresponding type declarations.
4 import { Root } from 'joi';
~~~~~
What are you trying to achieve or the steps to reproduce?
create any packet.json and have skipLibCheck = true
What was the result you got?
node_modules/@hapi/hapi/lib/types/route.d.ts:2:68 - error TS2307: Cannot find module 'joi' or its corresponding type declarations.
2 import { ObjectSchema, ValidationOptions, SchemaMap, Schema } from 'joi';
~~~~~
node_modules/@hapi/hapi/lib/types/server/server.d.ts:4:22 - error TS2307: Cannot find module 'joi' or its corresponding type declarations.
4 import { Root } from 'joi';
~~~~~
What result did you expect?
No error
The text was updated successfully, but these errors were encountered: