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
error comes out even if the variable UserDoc is only one in whole project
/Users/jh/Documents/intellij/nestjs/nillily-manbo/node_modules/tspec/dist/chunks/index.cjs:603
throw new Error(`Duplicate name: ${name}`);
^
Error: Duplicate name: UserDoc
at /Users/jh/Documents/intellij/nestjs/nillily-manbo/node_modules/tspec/dist/chunks/index.cjs:603:15
at visitNodes (/Users/jh/Documents/intellij/nestjs/nillily-manbo/node_modules/typescript-json-schema/node_modules/typescript/lib/typescript.js:27716:24)
at forEachChildInSourceFile (/Users/jh/Documents/intellij/nestjs/nillily-manbo/node_modules/typescript-json-schema/node_modules/typescript/lib/typescript.js:28338:18)
at forEachChild (/Users/jh/Documents/intellij/nestjs/nillily-manbo/node_modules/typescript-json-schema/node_modules/typescript/lib/typescript.js:27801:37)
at SourceFileObject.forEachChild (/Users/jh/Documents/intellij/nestjs/nillily-manbo/node_modules/typescript-json-schema/node_modules/typescript/lib/typescript.js:141047:18)
at /Users/jh/Documents/intellij/nestjs/nillily-manbo/node_modules/tspec/dist/chunks/index.cjs:585:13
at Array.forEach (<anonymous>)
at getTspecSignatures (/Users/jh/Documents/intellij/nestjs/nillily-manbo/node_modules/tspec/dist/chunks/index.cjs:584:15)
at getOpenapiSchemas (/Users/jh/Documents/intellij/nestjs/nillily-manbo/node_modules/tspec/dist/chunks/index.cjs:687:24)
at generateTspec (/Users/jh/Documents/intellij/nestjs/nillily-manbo/node_modules/tspec/dist/chunks/index.cjs:767:13)
Node.js v20.12.0
Expected behavior
I want to solve this problem. actually the solution is to guide to set this code in this environment. and fix the code
I made this section annotated
Describe the bug
using npm run start:dev in nestjs, error comes out. but the problem is that UserDoc is only one in the whole project
To Reproduce
Steps to reproduce the behavior:
main.ts
user-doc.ts
npm run start:dev
Expected behavior
I want to solve this problem. actually the solution is to guide to set this code in this environment. and fix the code
I made this section annotated
then it worked
Screenshots
this is error log
it is exactly same with no.4 error logs in To Reproduce
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: