-
Notifications
You must be signed in to change notification settings - Fork 10.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
bug(gatsby-plugin-typescript): linting causes errors #21913
Comments
@ThewBear could you please look into this? |
I couldn't reproduce. Could you give me an example code? |
@ThewBear After trying to make a simplified reproduction, it seems like it only happens with theme workspaces. I'll try to get you a repro |
@ThewBear here's a stripped down repro: https://github.com/cpboyd/gatsby-ts-workspace-bug |
Also seeing the issue. You can clone https://github.com/LekoArts/gatsby-themes and run
This completely brakes the development and I'll rollback for now. |
I'm having the same issue -- working in a mono repo with yarn workspaces. Worked on version |
We reverted it in version |
I was diving into this issue and here's gist of it: Potential fixes here (that would need to be done if we restore eslint loader for ts, as we reverted that part recently):
|
I created PR for |
Description
PR #18721 seems to have broken my builds.
I get errors thrown at Typescript-specific keywords like
enum
andas
, even though my eslint config doesn't throw any errors for those.Reverting to
gatsby-plugin-typescript@2.1.27
resolves these issues.Steps to reproduce
Use
gatsby-plugin-typescript@2.2.0
for any Typescript project containing Typescript files withenum
oras
.Expected result
These previously compiled without issue.
Actual result
Crash on develop/build.
Environment
Run
gatsby info --clipboard
in your project directory and paste the output here.The text was updated successfully, but these errors were encountered: