Component import in generated Angular module has file type ending #333
Labels
community-help
Extra attention is needed
effort1: hours
flag: already-fixed
This issue has already been fixed
priority: Medium
scope: CodeGen
status: accepted
type: enhancement
Describe the bug
The ES6 import of the component in the generated Angular module has a
.ts
ending which should be avoided.To Reproduce
Steps to reproduce the behavior:
npm start
to launch the app.http://localhost:4200/#/editor
Expected behavior
The file type ending in ES6 module import should be avoided.
Screenshots
Sketch (please complete the following information):
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
The error occurs in method
renderImports
(beginning line 120) inangular-codegen.service.ts
where the import statements are build. Here thefile.uri
has the.ts
ending. This should either be capped or instead of the file uri the filename itself should be used.The text was updated successfully, but these errors were encountered: