-
Notifications
You must be signed in to change notification settings - Fork 60
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 build error on Node14.x #252
Comments
When looking at the actual source file itself, typescript lights up like a Christmas tree complaining about this singular section of the file. |
Hi @claridgicus, thanks for reporting this issue. It should be fixed now as of You can upgrade to the latest version using the following command: npm run install @prismicio/client@latest If you're curious what the underlying issue was, you can find details in this PR here: prismicio/prismic-helpers#56 I'm going to close the issue since it should be fixed, but let me know if it doesn't and I'll reopen it and reinvestigate. Thanks again! 🙂 |
The issue was fixed after upgrading to "@prismicio/helpers": "2.3.3" Thanks |
Ah, yes, I should have mentioned you'll need to upgrade |
Node v14.19.1 - v14.20.0
Typescript 4.3.x - 4.7.4
Angular 12.x - 14.x
Repro steps
Install fresh Angular
Install Prismic client and helpers
Reference the prismic client in a service or component
Serve the project
Receive the below messages and an exception that kills the build
I've tried a totally fresh install of 14, going back to angular 12, and numerous TS versions.
I believe this is a straight typescript behaviour and something similar is referenced here microsoft/TypeScript#47357
The text was updated successfully, but these errors were encountered: