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

Adding @trapezedev/configure to project breaks types #167

Closed
hughknaus opened this issue Jan 31, 2023 · 4 comments
Closed

Adding @trapezedev/configure to project breaks types #167

hughknaus opened this issue Jan 31, 2023 · 4 comments

Comments

@hughknaus
Copy link

Trying Trapeze for the first time... After adding @trapezedev/configure to my project, types that were previously 'any' are now 'unknown':

Error: src/app/modules/core/cache/cache.reducer.ts:12:15 - error TS2339: Property 'item' does not exist on type 'unknown'.

12     if  (value.item) {
                  ^^^^

Uninstalling the @trapezedev/configure solves the issue but then, of course, Trapeze is unusable. It's not just the one error above, in fact, it looks like all types are affected. I'm probably overlooking something but I just need some guidance.

@mlynch
Copy link
Contributor

mlynch commented Feb 1, 2023

For now can you try not installing it but rather using it through npx?

npx @trapezedev/configure run ...

@hughknaus
Copy link
Author

I'll give that shot in the a.m. and report back.

@hughknaus
Copy link
Author

@mlynch Thank you, that worked and fits in well with our CI/CD build scripts.

@mlynch
Copy link
Contributor

mlynch commented Feb 1, 2023

Great. I'll look into updating the docs to mention this

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