Comments (2)
It will not work in Angular 16 until such time that the library is migrated to build with Ivy. With Angular 16, they decided to finally remove all compatibility with the older type of modules using the View engine.
https://angular.io/guide/update-to-version-16#angular-compatibility-compiler-ngcc-has-been-removed
Angular Compatibility Compiler (ngcc) has been removed
The Angular Compatibility Compiler (ngcc) was a build tool that facilitated compatibility between Angular's previous compiler and rendering architecture (View Engine) and its new architecture (Ivy).
View Engine was removed in Angular v13, and v16 finally removes ngcc. As a result, Angular libraries built with View Engine cannot be used in Angular v16+.
If this package does not get updated to support Ivy, you will need to remove this library for any project using Angular 16 or later.
Possible alternative libraries are:
https://www.npmjs.com/package/ngx-toastr
https://www.npmjs.com/package/@sweetalert2/ngx-sweetalert2
https://material.angular.io/components/snack-bar/overview
The next one is not distributed as a library but as tutorial/example of how to do it yourself, but focused on just "alerts"
https://jasonwatmore.com/angular-15-free-course-5-alerts-home-page
Update:
There are now two forks of this project that have both released npm packages that supposedly work with Angular 16 and Ivy:
https://github.com/ShacharHarshuv/Angular2-Toaster
https://www.npmjs.com/package/angular2-toaster-2
https://github.com/dmkachko/Angular2-Toaster
https://www.npmjs.com/package/@dkachko/angular2-toaster
from angular2-toaster.
Related Issues (20)
- Extend peer dependencies to Angular 9 HOT 1
- Not woring on angular 8 ssr(server side rendering) HOT 1
- Angular 9 Angular Dependency Injection issue HOT 2
- Error with Angular 9 HOT 3
- Can't upgrade to Angular 10 HOT 6
- Extend peer dependencies to Angular 10 HOT 1
- Angular 10 - 'ModuleWithProviders<T>' requires 1 type argument(s) HOT 2
- How to add containerId in ToasterConfig? HOT 3
- Typing error in build for Angular 11 HOT 5
- Cannot target which container to show toast in HOT 1
- Duplicated Nested Close Buttons after update HOT 2
- Angular Universal SSR support request HOT 4
- Warning: Can't resolve all parameters for ToasterConfig HOT 2
- New release for Angular 13 ? HOT 7
- 'toaster-container' is not a known element
- Thoughts of renaming the css class by adding prefix e.g. ng2- HOT 1
- Angular 15 seems not suported HOT 1
- Angular v17 support
- Angular v14 support HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular2-toaster.