Topic: Angular Full Calendar Plugin Installation to an already existing Angular project running version 7

trograin free asked 5 years ago


Expected behavior Installing the plugin into an already existing Angular project running Angular version 7.2.3. Expected behvior is to see the plugin actually load

Actual behavior Error message telling me this:

core.js:15724 ERROR Error: Uncaught (in promise): TypeError: Object(...) is not a function TypeError: Object(...) is not a function at angular-bootstrap-md.js:10253 at Module../node_modules/angular-bootstrap-md/fesm5/angular-bootstrap-md.js (angular-bootstrap-md.js:10255) at webpack_require (bootstrap:83) at Module../src/app/workflow/calendar/calendar.module.ts (calendar.component.ts:15) at webpack_require (bootstrap:83) at $_lazy_route_resource lazy namespace object:93 at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invoke (zone.js:391) at Object.onInvoke (core.js:17299) at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invoke (zone.js:390) at Zone.push../node_modules/zone.js/dist/zone.js.Zone.run (zone.js:150) at resolvePromise (zone.js:831) at resolvePromise (zone.js:788) at zone.js:892 at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:423) at Object.onInvokeTask (core.js:17290) at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:422) at Zone.push../node_modules/zone.js/dist/zone.js.Zone.runTask (zone.js:195) at drainMicroTaskQueue (zone.js:601)

Resources (screenshots, code snippets etc.) no need for screenshoot since the plugin simple do not load.

I added following in the package json: "angular-bootstrap-md": "^8.0.0", "mdb-calendar": "file:mdb-calendar-8.0.0.tgz",

I took the whole component.ts file as just.

as well the html file.

I added this into the module ( NOT in app.module but in my calendar module ):

// libs import { MDBBootstrapModule } from 'angular-bootstrap-md'; import { MdbCalendarModule } from "mdb-calendar";

And imported them like this:

MDBBootstrapModule.forRoot(), MdbCalendarModule,

I am at a loss :(

Pl0x Help :(


trograin free answered 5 years ago


I rather see this thread as opened as long as it is not resolved. Resolved it will be when I have gotten the v7 Plugin as a download and seen that it works :) That is why I opened up this thread again.


Arkadiusz Idzikowski staff answered 5 years ago


Please contact me on a.idzikowski@mdbootstrap.com (I will need your order number for the calendar plugin).


trograin free commented 5 years ago

Hi Arkadiusz, I just mailed you the order number. Thank you for answering and for helping out. Looking forward to your mail answer.

Br Boban Alempijevic


trograin free answered 5 years ago


So I think I managed to find, not a solution, but a reason.

https://github.com/angular/angular/issues/30413#issuecomment-491531239

Might I ask if your plugin was compiled with v8. Most likely it was, it means though that it will not be backword compatible at all since it will be using "ɵɵdefineInjectable" instead of "defineInjectable".

Therefor, might I ask if you still have a V7 version of the plugin hanging around somewhere since I truly would need it to work too be honest and upgrading the Whole project to Angular 8 is Not an option right now to be honest.


trograin free answered 5 years ago


So, found out that the simple answer is that there is no way I will be able to run the plugin on my project that is running on Angular 7. The simple question is, is it possible to get hold of an older version of the plugin that is based on Angular 7 from you?

My project is pretty advanced and upgrading it from 7 to 8 is NOT is straight forward business, unfortunately :(



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Opened

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: 8.0.0
  • Device: Desktop
  • Browser: All
  • OS: Linux
  • Provided sample code: No
  • Provided link: No