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

Imports { Document } when it is not used #106

Open
grantglidewell opened this issue Nov 5, 2021 · 2 comments
Open

Imports { Document } when it is not used #106

grantglidewell opened this issue Nov 5, 2021 · 2 comments

Comments

@grantglidewell
Copy link

When we generate our types we are seeing import { Document } from '@contentful/rich-text-types'; when that type isnt used anywhere. The result is that our type checks and thus builds fail.

I believe this is being imported because we have a string value in one of our union types in contentful that is 'Document'.

@grantglidewell
Copy link
Author

😮‍💨 its uh.... just part of the renderer template.

Please ping me if this library is still maintained and Ill work on a fix for it. Otherwise Ill spend some time transitioning this over to graphql codegen

@wardoost
Copy link

wardoost commented Jun 9, 2022

Running into the same issue and have worked around it using ESLint's ignore option. Would be great to get the proposed fix merged but not sure if this lib is still maintained...

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