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

Errors after adding to the project #3

Open
huksley opened this issue May 23, 2019 · 2 comments
Open

Errors after adding to the project #3

huksley opened this issue May 23, 2019 · 2 comments

Comments

@huksley
Copy link

huksley commented May 23, 2019

When I add import { InterfaceFrom } from 'types-joi' to the code, I get the following error invoking tsc:

[build] node_modules/types-joi/index.d.ts:67:26 - error TS2304: Cannot find name 'readonly'.
[build] 
[build] 67         allow<U>(values: readonly U[]): Schema<T | U>;

My dependencies are

typescript": "^3.2.2"
"joi": "^10.6.0",
"hapi": "^16.6.2",

Unfortunately I can`t upgrade hapi

@maghis
Copy link
Owner

maghis commented May 28, 2019

@huksley you have to update to the latest Typescript, you have be at least on 3.4

@huksley
Copy link
Author

huksley commented May 28, 2019

IMO it would be good to have it added to README.
Btw typescriptVersion: "x.x.x" not enforced right by npm/yarn :-(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants