Closed iperevozchikov closed 3 years ago
Hi @iperevozchikov! It sounds good! Do you think you would have time you make a small pull request with these changes? I'll be happy to review it :)
PR: https://github.com/guillotinaweb/ngx-schema-form/pull/396 Also checked tests: :heavy_check_mark: all tests passed
Great! Thanks! It is merged and published on NPM (version 2.6.4)
Hello guys! Faced with next problem after updated dependency of your library to version
2.6.x
- started to receive error in the storybook (ver. 6.2):After a small researching found that generated code in UMD is incorrect:
Propose next solution to solve this:
esModuleInterop
compile option (https://www.typescriptlang.org/tsconfig/#esModuleInterop)schemavalidatorfactory.ts
:import ZSchema from 'z-schema';
var ZSchemadefault = /*#PURE__*/_interopDefaultLegacy(ZSchema);
ZSchemaValidatorFactory.prototype.createSchemaValidator = function () { this.zschema = new ZSchema__default['default']({ breakOnFirstError: false }); };