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

Could not find a declaration file for module '@react-pdf/stylesheet'. #146

Open
jpainam opened this issue Nov 20, 2024 · 0 comments
Open

Comments

@jpainam
Copy link

jpainam commented Nov 20, 2024

When calling import { flatten } from "@react-pdf/stylesheet";

I get this error

Could not find a declaration file for module '@react-pdf/stylesheet'. '/node_modules/@react-pdf/stylesheet/lib/index.js' implicitly has an 'any' type.
:typecheck:   Try `npm i --save-dev @types/react-pdf__stylesheet` if it exists or add a new declaration (.d.ts) file containing `declare module '@react-pdf/stylesheet';`
typecheck:  ELIFECYCLECommand failed with exit code 2.
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

1 participant