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

ngx-popper not working after install #179

Open
ferlolo opened this issue May 24, 2023 · 1 comment
Open

ngx-popper not working after install #179

ferlolo opened this issue May 24, 2023 · 1 comment

Comments

@ferlolo
Copy link

ferlolo commented May 24, 2023

Enviroments:
Node version 16.20.0
Angular version 16

After install popper.js and ngx-popper , i try import NgxPopperModule in my app.module.ts and throw an error like that.
image
I see in the node_module that by comparing with other projects some folder are missing.
Some solutions?

Regards

@KernelFolla
Copy link

Hi Ferlolo,

ngx-popper does not support Angular 16 due to its lack of Ivy compilation support and the removal of ngcc support. Furthermore, considering that the last release of ngx-popper was made four years ago, it is unlikely that it will be updated to support Angular 16.

In this situation, we have two potential options:

Switch to ngx-popperjs: Since ngx-popperjs is an actively maintained library and compatible with newer versions of Angular, you can consider migrating your code to ngx-popperjs. However, please note that the usage of ngx-popperjs differs from ngx-popper, so you will need to make changes to adapt to the new library's API and components.

Make ngx-popper Ivy-compatible: Alternatively, you can attempt to make ngx-popper compatible with Ivy by performing the necessary updates and modifications to its codebase. However, this option would require a deep understanding of Angular's Ivy compilation process and the internal workings of ngx-popper. It may involve refactoring and updating the library's code to comply with Ivy's requirements.

I am confident that the first option is the better choice.

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

2 participants