-
Notifications
You must be signed in to change notification settings - Fork 487
[BUG] Upgrade from 7.0.0 to 7.5.x/8.x on Angular 18 will not compile #1122
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
Comments
I've had the same issue with Angular 18.2 and version 8.x |
This user has gotten the same error: |
Hi. We're running into the same issue as originally posted. I would be nice if this gets resolved since starting a new project on Angular 17 is no longer an option given LTS end date for it. |
Hello, i suggest you to check out formio/formio.js#5715 (comment) as it should be fixed |
Should be fixed with formio/core#221 |
Wanted to bump this issue as I am still seeing the same issue with both angular/formio 7.5 and 8.1 on Angular 19. I can create a new bug but it seems like this issue has not been fixed. Perhaps the installation instructions need to be updated as may be I am missing some dependencies? Even installing the latest version of formiojs does not fix the issue. I have made a basic angular app in stackblitz to show you the issues I am seeing. Please let me know if you can not access the page. https://stackblitz.com/edit/stackblitz-starters-rzjb9rc9?file=package.json Note you may have to run it with |
The fix (formio/core#221) was released in @formio/[email protected], which was updated in @formio/[email protected] and above. I expect it to be resolved if using those versions with @formio/angular 7.5 and 8.1. I'm not sure what to expect with Angular 19, but we do expect to push some Angular 19 updates very soon, but would suggest going ahead and opening a new issue if needed. |
@lane-formio Here is a stackblitz on node with angular 18.2 latest doing the same thing that was fixed - https://stackblitz.com/edit/stackblitz-starters-es4sxegk?file=package.json,src%2Fmain.ts. Are there other dependencies missing? Not sure what I am missing. Any help would be appreciated. npm list from above stackblitz:
|
Environment
Please provide as many details as you can:
Steps to Reproduce
This is an upgrade from Angular 17 to Angular 18.2 and upgrading formio/angular from 7.0.0 to 7.5.x or 8.x
Expected behavior
Expect app to compile and run using
ng serve {app}
Observed behavior
Application will not compile for
ng serve {app}
. Throws errors referencing @formio/deprecated-types which is not mentioned in the installation instructions but is fixable. Main issue is the cascade of other errors which appear to be missing dependencies being thrown from pretty much every .ts file within the node_modules/@formio install directory. Unsure if the formio/angular library is expecting other dependencies or what. Rolling back to 7.x with overrides compiles as expected and the usage works as expected within the compiled app.Also, it does not seem to matter what version of formio/js is installed or bootstrap which is also used.
Example
Running
ng serve {app}
results in the following errors plus many more being displayed in the consoleThe text was updated successfully, but these errors were encountered: