-
Notifications
You must be signed in to change notification settings - Fork 148
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
Typescript templates not compiling #4172
Comments
what's the reason for running |
I think this might fix this, but waiting to get some input from others @ Contentful since I'm by no means an expert in the typescript compiler :D #4173 |
Thanks @ghepting , I'll update my local version, bringing typescript back to version 4.x and use the moduleResolution NodeNext |
Hello @jfacchini. Thank you for raising this issue, and I know it has been a while since we checked back - has everything be resolved on your end? If so, I will go ahead and close the issue. |
Hi @lilbitner, sorry for my late response. I've just stumbled upon the exact same problem today. And again the solution for me was to update the version of typescript to version 5. Having a look at the ts-config file https://github.com/contentful/apps/blob/master/examples/typescript/tsconfig.json#L2 I notice the config comes from this file: https://github.com/tsconfig/bases/blob/main/bases/create-react-app.json#L9 This moduleResolution is not supported by typescript before version 5. |
Describe the bug
I just created a new App using the Typescript template but I'm getting the following compilation error
Upon investigation it seems this error has been introdued by the @tsconfig/create-react-app package to
version >= 2
, but this configuration expect a version ofTypescript >= 5
which accepts the valuebundler
for themoduleResolution
config.I've tried to update typescript dependency to version 5.1.6 and I'm not getting any compilation error and it seems to be running fine in development mode.
To Reproduce
Steps to reproduce the behavior:
The text was updated successfully, but these errors were encountered: