Closed steve-baldwin closed 1 year ago
@steve-baldwin Add "overrides": { "@openapi-contrib/openapi-schema-to-json-schema": "3.2.0" }, to your package.json as a temporary workaround
This breaking change is causing @asyncapi/cli to fail, too, FYI
I.m using @loop/rest and it require openapi-contrib/openapi-schema-to-json-schema but with ultimate version i have this error:
Error [ERR_REQUIRE_ESM]: require() of ES Module /srv/api-stage.techfitds.com/node_modules/lodash-es/lodash.js from /srv/api-stage.techfitds.com/node_modules/@loopback/rest/node_modules/@openapi-contrib/openapi-schema-to-json-schema/dist/cjs/lib/converters/schema.js not supported. 0|. | Instead change the require of lodash.js in /srv/api-stage.techfitds.com/node_modules/@loopback/rest/node_modules/@openapi-contrib/openapi-schema-to-json-schema/dist/cjs/lib/converters/schema.js to a dynamic import() which is available in all CommonJS modules.
Dear maintainers, This is critical issue; dozens of packages depending on this will fail. Can you guys revert this please?
cc: @philsturgeon @jonluca
Looking into this now, will push a fix soon
We tried to upgrade from 3.2.0 to 3.3.0 and now have typescript compilation issues. For example:
Our
tsconfig.json
:Thanks,
Steve