including external script results in error when trying to call a method
Tagged: external
-
Klaus79
4 years ago #19961I’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?
Dinkel
Has successfully completed the online course Introduction
Has successfully completed the online course Intermediate (200)
Has successfully completed the online course Advanced (300)
Has successfully completed the online course Basics (100)
4 years ago #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.
Dinkel
Has successfully completed the online course Introduction
Has successfully completed the online course Intermediate (200)
Has successfully completed the online course Advanced (300)
Has successfully completed the online course Basics (100)
4 years ago #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
Viewing 5 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic.