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
Setting the above simple default specification on Typescript based Express throws the following error:
import { prepare, extract, organize, finalize } from './src/specification.js';
^
SyntaxError: Unexpected token {
at Module._compile (internal/modules/cjs/loader.js:723:23)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Object.<anonymous> (/Users/utmishra/dev/projects/stories/authentication/src/app.ts:22:1)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Module.m._compile (/Users/utmishra/dev/projects/stories/authentication/node_modules/ts-node/src/index.ts:1056:23)
at Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Object.require.extensions.(anonymous function) [as .ts] (/Users/utmishra/dev/projects/stories/authentication/node_modules/ts-node/src/index.ts:1059:12)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Object.<anonymous> (/Users/utmishra/dev/projects/stories/authentication/src/index.ts:2:1)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Module.m._compile (/Users/utmishra/dev/projects/stories/authentication/node_modules/ts-node/src/index.ts:1056:23)
at Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Object.require.extensions.(anonymous function) [as .ts] (/Users/utmishra/dev/projects/stories/authentication/node_modules/ts-node/src/index.ts:1059:12)
To Reproduce
Steps to reproduce the behaviour:
Run a Typescript Node package with swagger-jsdoc installed
Package version: ^7.0.0-rc.6
Expected behaviour
The app runs without throwing an error
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Describe the bug
Setting the above simple default specification on Typescript based Express throws the following error:
To Reproduce
Steps to reproduce the behaviour:
swagger-jsdoc
installedPackage version:
^7.0.0-rc.6
Expected behaviour
The app runs without throwing an error
Additional context
Current workaround:
The text was updated successfully, but these errors were encountered: