Closed thegauravsharma closed 1 year ago
@thegauravsharma Add "overrides": { "@openapi-contrib/openapi-schema-to-json-schema": "3.2.0" }, to your package.json as a temporary workaround
For me these question can be answered quite simply include into package.json "@openapi-contrib/openapi-schema-to-json-schema": "3.2.0".
No more and successful!!
While that PR claims it added esm and cjs builds, it hard codes use of esm dependencies which make the cjs builds unusable. Clearly more CI testing is needed as this seems like the kind of thing that could have trivially been caught in a basic CI test, since you can't even require() the cjs build of 3.3.0.
Seeing the same issue
I think this error is happening on Linux only but this solution works for me
"overrides": { "@openapi-contrib/openapi-schema-to-json-schema": "3.2.0" },
Same error
Duplicate of https://github.com/openapi-contrib/openapi-schema-to-json-schema/issues/54.
Seems to be fixed starting v3.3.1
Should be fixed in 3.3.1, let me know if anyone is still seeing issues
There is the issue where the built cjs now has exports.default = openapiSchemaToJsonSchema
instead of module.exports = openapiSchemaToJsonSchema
, which might cause issues if people are using a default import in cjs.
As a follow up to this - I'll be releasing a new change, 3.3.2, which is the old version of the code from 3.2.0, and then create an actual breaking change with a release to 4.0.0. Apologies for the breakage here everyone.
+1 for the old version to be available as the latest in series 3.x.x. Thanks @jonluca for the quick fix.
Ok 3.3.2 should be pushed and live. This should fix any packages dependent on 3.x. Creating a 4.x cut right now. Apologies I didn't catch this sooner, again.
I am using Loopback 4 CLI to connect Microsoft SQL database in my app, after adding data source getting following errors. I've already tried to install lodash-es in package.json but not helping. Please review the following error and help me out.
Thanks