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
When including openapi-fetch from a CommonJS module, we get the following error:
node_modules/openapi-fetch/dist/cjs/index.d.cts:10:8 - error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("openapi-typescript-helpers")' call instead.
10 } from "openapi-typescript-helpers";
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Found 1 error in node_modules/openapi-fetch/dist/cjs/index.d.cts:10
Description
When including
openapi-fetch
from a CommonJS module, we get the following error:Reproduction
See the following proof-of-concept repo: https://github.com/darwish/openapi-typescript-poc
Checklist
The text was updated successfully, but these errors were encountered: