You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Frontend framework: Angular 18.2.x using @angular-builders/custom-esbuild
Browser: N/A
Browser version: N/A
Typescript 5.5.4
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 console
✘ [ERROR] TS2307: Cannot find module 'types' or its corresponding type declarations. [plugin angular-compiler]
node_modules/@formio/core/lib/error/FieldError.d.ts:1:34:
1 │ import { ValidationContext } from 'types';
╵ ~~~~~~~
✘ [ERROR] TS2307: Cannot find module 'types' or its corresponding type declarations. [plugin angular-compiler]
node_modules/@formio/core/lib/error/ProcessorError.d.ts:1:33:
1 │ import { ProcessorContext } from 'types';
╵ ~~~~~~~
✘ [ERROR] TS2307: Cannot find module 'utils' or its corresponding type declarations. [plugin angular-compiler]
node_modules/@formio/core/lib/modules/jsonlogic/index.d.ts:1:48:
1 │ import { BaseEvaluator, EvaluatorOptions } from 'utils';
╵ ~~~~~~~
✘ [ERROR] TS2307: Cannot find module 'types' or its corresponding type declarations. [plugin angular-compiler]
node_modules/@formio/core/lib/process/calculation/index.d.ts:1:98:
1 │ ...CalculationScope, CalculationContext, ProcessorInfo } from 'types';
╵ ~~~~~~~
✘ [ERROR] TS2307: Cannot find module 'types' or its corresponding type declarations. [plugin angular-compiler]
node_modules/@formio/core/lib/process/clearHidden.d.ts:1:81:
1 │ ...e, ProcessorContext, ProcessorInfo, ProcessorFnSync } from 'types';
╵ ~~~~~~~
The text was updated successfully, but these errors were encountered:
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.
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: