Closed mohamedumer closed 3 years ago
Testing this out with Angular 11 this doesn't appear to be an issue https://codesandbox.io/s/angular-11-example-ssg15?file=/src/app/app.component.ts
Could you try upgrading the TypeScript version you are using? unist
and most of unified
and remark
currently support TypeScript version 3 or higher. In the next major release TypeScript 4 and higher.
The error you as seeing looks like a TypeScript version 2 error.
Hi! Thanks for taking the time to contribute! This has been marked by a maintainer as needing a reproduction: It’s not yet clear whether this is a problem. Here are a couple tips:
Thanks, — bb
Hi team! I don’t know what’s up as there’s no phase label. Please add one so I know where it’s at.
Thanks, — bb
Hi! Thanks for taking the time to contribute! This has been marked by a maintainer as needing a reproduction: It’s not yet clear whether this is a problem. Here are a couple tips:
Thanks, — bb
Hi team! Could you describe why this has been marked as wontfix?
Thanks, — bb
This works on supported versions of Angular (https://angular.io/guide/releases#support-policy-and-schedule) and supported versions of TypeScript (version 3+).
We tried to upgrade Typescript greater than 3. but getting error while running yarn install, so we checked out with Ts 2.9.2 then the build is fine in local. where in pipeline still we are facing issue with the app build, which takes longer time, eventually getting failed. is there anything to consider apart from Typescript upgrade. @ChristianMurphy
A TypeScript upgrade to version 3 or higher is the more consistent and likely way to get it to work.
You could try pinning older versions of types packages that are failing, so see if they work with legacy typescript. Or you could manually edit typings with https://github.com/ds300/patch-package#readme to remove features until it works with legacy typescript versions.
Initial checklist
Affected packages and versions
@types/unist & 2.0.6
Link to runnable example
No response
Steps to reproduce
angular - 4.3.6 node- 10.15.0 react-markdown- 4.0.3 with above version if we try to build angular app, we are getting below error.
Expected behavior
it should build the app.
Actual behavior
due to @types/unist package issue we wont be able to build angular app.
Runtime
Other (please specify in steps to reproduce)
Package manager
yarn v1
OS
Windows, Linux
Build and bundle tools
Webpack