ngxtension / ngxtension-platform

Utilities for Angular
https://ngxtension.netlify.app/
MIT License
544 stars 80 forks source link

Error when running convert-di-to-inject migration #350

Closed krisatopi closed 3 months ago

krisatopi commented 3 months ago

That's all what it says:

Cannot read properties of undefined (reading 'toString')

Angular 17.3 Node v21

eneajaho commented 3 months ago

Found the issue:

// type here can be undefined if there was no type in the constructor.
const typeHasGenerics = type.toString().includes('<');