Importing the module in Angular gives me an error #332
-
Hey
I installed the package with NPM, added the It is probably an Angular thing and not particularly an issue with the package but I cannot understand what it is. Best, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @dilyandimitrov , This is neither an Angular, nor an Add-to-Calendar issue. It is caused by webpack not being able to transpile the Add to Calendar code to your old Ecma Script version (which is a result of your old Angular version). However, just a friendly advice: You should really update your project to the latest Angular version 15. Version 8 is now 4 years old, which is an extremely long period within Frontend development and no longer supported by a lot of stuff. Working with outdated frameworks is a big risk. In terms of security (to be fair, a smaller one), but more important in terms of being compatible to any third party element. All the best, |
Beta Was this translation helpful? Give feedback.
Hi @dilyandimitrov ,
This is neither an Angular, nor an Add-to-Calendar issue. It is caused by webpack not being able to transpile the Add to Calendar code to your old Ecma Script version (which is a result of your old Angular version).
I have published a new version (2.1.2), which holds better backwards compatibility and hopefully works within your stack.
However, just a friendly advice: You should really update your project to the latest Angular version 15. Version 8 is now 4 years old, which is an extremely long period within Frontend development and no longer supported by a lot of stuff. Working with outdated frameworks is a big risk. In terms of security (to be fair, a smaller one), …