angular-react icon indicating copy to clipboard operation
angular-react copied to clipboard

Types are missing in the 4.1.0

Open zagoa opened this issue 3 years ago • 0 comments

I got this problem when I try to compile my angular app (angular 13) I have the following error.

node_modules/@angular-react/core/src/lib/components/wrapper-component.d.ts:1:23 - error TS2688: Cannot find type definition file for 'libs/core/src/lib/@types/geteventlisteners'.

1 /// <reference types="libs/core/src/lib/@types/geteventlisteners" />
                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

When I look into the libray downloaded by npm https://registry.npmjs.org/@angular-react/core/-/core-4.1.0.tgz I don't found the folder types in core. Moreover the path seems wrong in lib and not in the code https://github.com/microsoft/angular-react/blob/508dcbc625696026a37b1d50df3811e855983f75/libs/core/src/lib/components/wrapper-component.ts#L3 After investigation it's because d.ts files are not embedded during compilation process.

So I forked the project to propose you an update of the lib to have the right compilation and avoid to have this error.

zagoa avatar Nov 16 '22 17:11 zagoa