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
We are trying to use openapi-metadata in a large TypeScript project which is based on CommonJS (we plan to migrate to ESM at some point but not yet). It seems that openapi-metadata does not support CommonJS (the TS compiler suggest to change 'moduleResolution' setting 'node16', 'nodenext', or 'bundler'.).
Do you plan to support CommonJS in openapi-metadata?
Than you for your effort and time in this great project
Thanks guys! I have seen that this is already included in 0.2.0. We have added a task for testing it in Feb. I will report the results here. We are in a MVP testing tsoc and openapi-metadata for a large TS project.
@kerwanp trying to use openapi-metadata importing it with CommonJS we get the error:
Uncaught Error [ERR_PACKAGE_PATH_NOT_EXPORTED]:
Package subpath './dist/decorators' is not defined by "exports" in
/Users/acs/devel/backend/node_modules/openapi-metadata/package.json
Description
Hi team!
We are trying to use
openapi-metadata
in a large TypeScript project which is based onCommonJS
(we plan to migrate to ESM at some point but not yet). It seems thatopenapi-metadata
does not supportCommonJS
(the TS compiler suggest to change 'moduleResolution' setting 'node16', 'nodenext', or 'bundler'.).Do you plan to support
CommonJS
inopenapi-metadata
?Than you for your effort and time in this great project
-- Alvaro
Proposal
Support
CommonJS
inopenapi-metadata
Extra
The text was updated successfully, but these errors were encountered: