question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Class not found error

See original GitHub issue

Class not found

| (anonymous) | @ | ion-dev.js?v=3.0.0:156 – | – | – | –   | errorHandler | @ | BaseClass.js:116   | (anonymous) | @ | googlemaps-cdv-plugin.js:754   | t.invokeTask | @ | polyfills.js:3   | onInvokeTask | @ | core.es5.js:3881   | t.invokeTask | @ | polyfills.js:3   | r.runTask | @ | polyfills.js:3   | e.invokeTask | @ | polyfills.js:3   | i.isUsingGlobalCallback.invoke | @ | polyfills.js:3   | n | @ | polyfills.js:2   | setTimeout (async) |   |     | o | @ | polyfills.js:2   | t.scheduleTask | @ | polyfills.js:3   | onScheduleTask | @ | polyfills.js:3   | t.scheduleTask | @ | polyfills.js:3   | r.scheduleTask | @ | polyfills.js:3   | r.scheduleMacroTask | @ | polyfills.js:3   | (anonymous) | @ | polyfills.js:2   | o.(anonymous function) | @ | polyfills.js:2   | commandQueue.push.args | @ | googlemaps-cdv-plugin.js:753   | callbackFromNative | @ | cordova.js:295   | processMessage | @ | cordova.js:1119   | processMessages | @ | cordova.js:1142   | t.invoke | @ | polyfills.js:3   | onInvoke | @ | core.es5.js:3890   | t.invoke | @ | polyfills.js:3   | r.run | @ | polyfills.js:3   | (anonymous) | @ | polyfills.js:3   | t.invokeTask | @ | polyfills.js:3   | onInvokeTask | @ | core.es5.js:3881   | t.invokeTask | @ | polyfills.js:3   | r.runTask | @ | polyfills.js:3   | o | @ | polyfills.js:3   | Promise resolved (async) |   |     | r | @ | polyfills.js:3   | t.scheduleTask | @ | polyfills.js:3   | onScheduleTask | @ | polyfills.js:3   | t.scheduleTask | @ | polyfills.js:3   | r.scheduleTask | @ | polyfills.js:3   | r.scheduleMicroTask | @ | polyfills.js:3   | f | @ | polyfills.js:3   | c | @ | polyfills.js:3   | (anonymous) | @ | polyfills.js:3   | Promise resolved (async) |   |     | (anonymous) | @ | polyfills.js:3   | t | @ | polyfills.js:3   | t.then | @ | polyfills.js:3   | (anonymous) | @ | cordova.js:935   | androidExec | @ | cordova.js:977   | resetTimer | @ | googlemaps-cdv-plugin.js:478   | fireDocumentEvent | @ | cordova.js:235   | getMap | @ | googlemaps-cdv-plugin.js:622   | GoogleMap | @ | index.js:1349   | GoogleMaps.create | @ | index.js:370   | (anonymous) | @ | profile.ts:44   | t.invoke | @ | polyfills.js:3   | onInvoke | @ | core.es5.js:3890   | t.invoke | @ | polyfills.js:3   | r.run | @ | polyfills.js:3   | (anonymous) | @ | polyfills.js:3   | t.invokeTask | @ | polyfills.js:3   | onInvokeTask | @ | core.es5.js:3881   | t.invokeTask | @ | polyfills.js:3   | r.runTask | @ | polyfills.js:3   | o | @ | polyfills.js:3   | e.invokeTask | @ | polyfills.js:3   | p | @ | polyfills.js:2   | v | @ | polyfills.js:2   | XMLHttpRequest.send (async) |   |     | s | @ | polyfills.js:3   | t.scheduleTask | @ | polyfills.js:3   | onScheduleTask | @ | polyfills.js:3   | t.scheduleTask | @ | polyfills.js:3   | r.scheduleTask | @ | polyfills.js:3   | r.scheduleMacroTask | @ | polyfills.js:3   | (anonymous) | @ | polyfills.js:3   | o.(anonymous function) | @ | polyfills.js:2   | (anonymous) | @ | http.es5.js:1275   | Observable.trySubscribe | @ | Observable.js:171   | Observable.subscribe | @ | Observable.js:159   | MapOperator.call | @ | map.js:54   | Observable.subscribe | @ | Observable.js:156   | webpackJsonp.199.ProfilePage.ngOnInit | @ | profile.ts:32   | checkAndUpdateDirectiveInline | @ | core.es5.js:10856   | checkAndUpdateNodeInline | @ | core.es5.js:12357   | checkAndUpdateNode | @ | core.es5.js:12296   | debugCheckAndUpdateNode | @ | core.es5.js:13160   | debugCheckDirectivesFn | @ | core.es5.js:13101   | (anonymous) | @ | ProfilePage_Host.html:1   | debugUpdateDirectives | @ | core.es5.js:13086   | checkAndUpdateView | @ | core.es5.js:12263   | callWithDebugContext | @ | core.es5.js:13486   | debugCheckAndUpdateView | @ | core.es5.js:13026   | ViewRef.detectChanges | @ | core.es5.js:10189   | NavControllerBase._viewAttachToDOM | @ | nav-controller-base.js:589   | Tab._viewAttachToDOM | @ | tab.js:324   | NavControllerBase._transition | @ | nav-controller-base.js:681   | (anonymous) | @ | nav-controller-base.js:363   | t.invoke | @ | polyfills.js:3   | onInvoke | @ | core.es5.js:3890   | t.invoke | @ | polyfills.js:3   | r.run | @ | polyfills.js:3   | (anonymous) | @ | polyfills.js:3   | t.invokeTask | @ | polyfills.js:3   | onInvokeTask | @ | core.es5.js:3881   | t.invokeTask | @ | polyfills.js:3   | r.runTask | @ | polyfills.js:3   | o | @ | polyfills.js:3   | e.invokeTask | @ | polyfills.js:3   | p | @ | polyfills.js:2   | v

this error appears in my log. I dont know what can be this is my code: `mport { Component, OnInit } from ‘@angular/core’; import { NavController, Platform } from ‘ionic-angular’;

import { ClientsService } from ‘…/…/providers/clients.service’;

import { GoogleMaps, GoogleMap, GoogleMapsEvent, GoogleMapOptions, CameraPosition, MarkerOptions, Marker } from ‘@ionic-native/google-maps’;

@Component({ selector: ‘page-profile’, templateUrl: ‘profile.html’ }) export class ProfilePage implements OnInit { client: any; map: GoogleMap; mapElement: HTMLElement; constructor(private googleMaps: GoogleMaps, public platform: Platform, public clientsService: ClientsService) {

platform.ready().then(() => {
  this.loadMap1();
});

}

ngOnInit() { this.clientsService.getProfile().subscribe((data: any) => { this.client = data; //this.loadMap1(); }) }

loadMap1() { this.mapElement = document.getElementById(‘map’);

let mapOptions: GoogleMapOptions = {
  camera: {
    target: {
      lat: 43.0741904,
      lng: -89.3809802
    },
    zoom: 18,
    tilt: 30
  }
};

this.map = this.googleMaps.create(this.mapElement, mapOptions);

// Wait the MAP_READY before using any methods.
this.map.one(GoogleMapsEvent.MAP_READY)
  .then(() => {
    console.log('Map is ready!');

    // Now you can use all methods safely.
    this.map.addMarker({
        title: 'Ionic',
        icon: 'blue',
        animation: 'DROP',
        position: {
          lat: 43.0741904,
          lng: -89.3809802
        }
      })
      .then(marker => {
        marker.on(GoogleMapsEvent.MARKER_CLICK)
          .subscribe(() => {
            alert('clicked');
          });
      });

  });

}

} `

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:15 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
francorocommented, Oct 18, 2017

Sure i will donate when i free at night.Thanks for all your help

0reactions
wf9a5m75commented, Oct 18, 2017

If you want to use the livereload, inserting setTimeout is better like this. Because the platform.ready() delays sometime.

  ionViewDidEnter(){
    setTimeout(this.loadMap.bind(this), 1000);
  }

By the way, I appreciate if you support for this project.

This is $5 donation link at paypal When you donate some amount to the project, please include your issue number in your name.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix ClassNotFoundException in Java - Rollbar
The java.lang.ClassNotFoundException is a checked exception in Java that occurs when the JVM tries to load a particular class but does not ...
Read more >
ClassNotFoundException vs NoClassDefFoundError - Baeldung
NoClassDefFoundError is a fatal error. It occurs when JVM can not find the definition of the class while trying to: ... The error...
Read more >
How to Solve java.lang.ClassNotFoundException in Java?
ClassNotFoundException is a checked exception and occurs when the Java Virtual Machine (JVM) tries to load a particular class and the ...
Read more >
Solving java.lang.ClassNotFoundException
NoClassDefFoundError is an error and it occurs when a class is present at compile-time and the same is missing at the run time....
Read more >
ClassNotFoundException (Java Platform SE 7 )
Thrown when an application tries to load in a class through its string name using: ... but no definition for the class with...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found