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
After installing and implementing the wizard I kept getting this error (and similar for each property in the model):
Error: node_modules/@sebgroup/ng-wizard/lib/models/wizard-texts.d.ts:2:5 - error TS2411: Property 'wiz_next_action' of type 'string | undefined' is not assignable to string index type 'string'.
2 wiz_next_action?: string;
~~~~~~~~~~~~~~~
The package itself has the strict property set to false in tsconfig, which is the reason why the package itself won't complain about this error. But as soon as the main project has strict set to true the error pasted above will appear.
Proposed solution:
Fix wizard-texts.ts model by correctly setting the types:
Issue:
After installing and implementing the wizard I kept getting this error (and similar for each property in the model):
The package itself has the
strict
property set to false in tsconfig, which is the reason why the package itself won't complain about this error. But as soon as the main project hasstrict
set to true the error pasted above will appear.Proposed solution:
Fix wizard-texts.ts model by correctly setting the types:
and set
strict
to true in tsconfig, since this is the default behavior of Angular projects.If this is not fixed every project that wants to use the wizard won't be able to have strict typing enabled.
The text was updated successfully, but these errors were encountered: