Azure / autorest.typescript

Extension for AutoRest (https://github.com/Azure/autorest) that generates TypeScript code. The transpiled javascript code is isomorphic. It can be run in browser and in node.js environment.
MIT License
177 stars 75 forks source link

import duplicate models with latest main codegen and import from the wrong path #2622

Closed kazrael2119 closed 3 months ago

kazrael2119 commented 3 months ago

when using latest main codegen to generate code, under src/models/models.ts, it will be generated like following code: image

import { serializeRecord } from "..helpersserializerHelpers.js"; are duplicate. And the import path are wrong. the path ..helpersserializerHelpers.js should be ../helpers/serializerHelpers.js the path ..\restindex.js should be ../rest/index.js