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 adding oas3-tools into an application of "type":"module" (package.json), import xxxx from '/xxxx.js' syntax (instead of require) is not enabled in "controllers" files.
When adding oas3-tools into an application of
"type":"module"
(package.json),import xxxx from '/xxxx.js'
syntax (instead of require) is not enabled in "controllers" files.oas3-tools/src/middleware/swagger.router.ts
Line 31 in 9349490
So to be able to use regular "import" syntax, one should use file extensions .cjs or .mjs which is not accepted by hereunder line:
oas3-tools/src/middleware/swagger.router.ts
Line 14 in 9349490
The text was updated successfully, but these errors were encountered: