-
Notifications
You must be signed in to change notification settings - Fork 461
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] angular-formio 4.6.7 fails to compile with typescript type error #489
Comments
This looks like it might be a typescript version problem similar to what is described here: Should angular-formio dependencies for typescript version be documented or put in package.json? |
Sure... if you make a pull request, we will look at accepting it. |
I should have been more clear on this, it doesn't look like the issue is based on the Changelog and package.json: no explicit typescript upgrade occurred between 4.5.8 and 4.6.7. Instead the issue points to the generated files being generated with the wrong version of typescript during your build process (which I don't think I can submit a PR for.) Specifically, I get errors from these 3 files: What I suspect is that the .d.ts files for these items were generated with Typescript 3.7, instead of the files previously generated with Typescript 3.6 (since that upgrade did occur in Angular-formio 4.6.x). For whatever reason, that makes the generated files now incompatible with my project, running on Typescript 3.2.4 I can't upgrade my entire application to a higher version of Typescript to solve a dependency issue like this one: my project is Angular 7 based and Angular 7 requires typescript between v3.1 and v3.3. This issue effectively causes a complete Angular 7 support drop completely starting at Angular Form.io 4.6. If this was the intention, then THAT is what someone on your team needs to document. If it isn't, then the types.d files for the project need to be generated differently in the build step for angular-formio before release. |
Oh I see... this is what I feared because up until now we have been able to have all versions of Angular supported with a single release. This may mean that we will need to recompile the version with an older version of typescript and have a "special" version for older Angular versions. The only other thing that I can think of is can we compile this version with an older typescript and will that run in Angular 9 without errors? I would prefer to have a single build that works for all, so your input in this would be helpful if you think that would work. |
Followup here: my team ended up migrating to Angular 9 for other reasons. Don't know if this is still an issue. |
We will be migrating this library to Angular 9/10 within the next couple of weeks. |
We're currently addressing a backlog of GitHub issues, and as part of this effort, some inactive issues may be marked as closed. This isn't a dismissal, but a step toward more efficient tracking. If you feel the issue is still relevant, please re-open and we'll ensure it gets the attention it deserves. Your understanding is appreciated as we work to enhance our open-source responsiveness. |
Environment
Please provide as many details as you can:
Steps to Reproduce
Expected behavior
Modules compile.
Observed behavior
The following compile error:
ℹ 「wdm」: Failed to compile.
This issue does NOT happen with angular 4.5.8 and formio.js 4.9.0-rc.7.
The text was updated successfully, but these errors were encountered: