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

Types are missing in the 4.1.0 #205

Open
zagoa opened this issue Nov 16, 2022 · 0 comments
Open

Types are missing in the 4.1.0 #205

zagoa opened this issue Nov 16, 2022 · 0 comments

Comments

@zagoa
Copy link

zagoa commented Nov 16, 2022

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

/// <reference path="../@types/geteventlisteners.d.ts" />

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.

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

No branches or pull requests

1 participant