Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicate identifier appears in modular routes generation #2866

Open
v-jiaodi opened this issue Oct 18, 2024 · 0 comments
Open

Duplicate identifier appears in modular routes generation #2866

v-jiaodi opened this issue Oct 18, 2024 · 0 comments
Assignees
Labels
HRLC p0 priority 0

Comments

@v-jiaodi
Copy link
Member

v-jiaodi commented Oct 18, 2024

tspconfig.yaml:

emit:
  - "@azure-tools/typespec-ts"
options:
  "@azure-tools/typespec-ts":
    "emitter-output-dir": "{project-root}"
    generateMetadata: true
    generateTest: false
    azureSdkForJs: false
    isTypeSpecTest: true
    isModularLibrary: true
    hierarchyClient: true
    packageDetails:
      name: "@msinternal/routes"

Regarding tspconfig.yaml, I have tried adding enableOperationGroup: true and enableModelNamespace: true, but still got the same error.

Error log:

 Exception during run: test/modularIntegration/generated/routes/src/classic/queryParameters/index.ts(38,3): error TS2300: Duplicate identifier 'queryExpansion'.
test/modularIntegration/generated/routes/src/classic/queryParameters/index.ts(39,3): error TS2300: Duplicate identifier 'queryExpansion'. 
test/modularIntegration/generated/routes/src/classic/queryParameters/index.ts(40,3): error TS2300: Duplicate identifier 'queryContinuation'.
test/modularIntegration/generated/routes/src/classic/queryParameters/index.ts(41,3): error TS2300: Duplicate identifier 'queryContinuation'.
test/modularIntegration/generated/routes/src/classic/queryParameters/index.ts(67,5): error TS1117: An object literal cannot have multiple properties with the same name.
test/modularIntegration/generated/routes/src/classic/queryParameters/index.ts(69,5): error TS1117: An object literal cannot have multiple properties with the same name.

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
HRLC p0 priority 0
Projects
None yet
Development

No branches or pull requests

3 participants