including external script results in error when trying to call a method
Tagged: external
-
Klaus79vor 4 Jahren #19961
I’ve included some libraries for maps (HERE service).
and afterwards added to my application
After deploying I get following error:
is there an error in the way adding the external libraries to the app?
DinkelHas successfully completed the online course IntroductionHas successfully completed the online course Intermediate (200)Has successfully completed the online course Advanced (300)Has successfully completed the online course Basics (100)vor 4 Jahren #19988::I mean the order of loading the library parts. Look at this code snippet:
addScript('js/mapsjs-core.js', 'mapsjs-core'); addScript('js/mapsjs-mapevent.js', 'mapsjs-mapevent', ['mapsjs-core']); addScript('js/mapsjs-service.js', 'mapsjs-service', ['mapsjs-core']); addScript('js/mapsjs-ui.js', 'mapsjs-ui', ['mapsjs-core', 'mapsjs-mapevent', 'mapsjs-service']); addStyle('css/mapsjs-ui.css');
I don’t know if this is the right order because I don’t know the library.
If it’s a problem of generating the code then try deploying and look into index.html. Your library should be referenced there.
DinkelHas successfully completed the online course IntroductionHas successfully completed the online course Intermediate (200)Has successfully completed the online course Advanced (300)Has successfully completed the online course Basics (100)vor 4 Jahren #19967::I think the problem is the order of loading your library.
Look at the documentation to learn how you control the order loading the library.Klaus79
Ansicht von 5 Beiträgen – 1 bis 5 (von insgesamt 5)
You must be logged in to reply to this topic.