conterra / mapapps-query-builder

The Query Builder Bundle allows you to create your own Query Tools, that perform custom queries to a store.
https://demos.conterra.de/mapapps/resources/apps/downloads_query_builder/index.html
Apache License 2.0
7 stars 6 forks source link

Bundles does not work together: "dn_printingenhanced" and "dn_querybuilder" in the same Line 4 App #31

Closed JoergArnold closed 4 years ago

JoergArnold commented 4 years ago

If I put both bundles (latest versions) in the same app, i got the follwing console error for dn_printingenhanced-bundle:

TypeError: "ComponentReferenceController._injectService: Exception during injection of reference 'mapWidgetModel' with service:'undefined' cause of TypeError: this[c] is undefined" Dojo 29 layer.js:1221:285 Dojo 27 Component.activate: Component 'PrintingPreviewController' of bundle 'Bundle[25]-dn_printingenhanced-v1.1.5:ACTIVE' error during activation of component 'PrintingPreviewController'! ACTIVATION_ERROR: "Component._createComponentContext: Component 'PrintingPreviewController' of bundle 'Bundle[25]-dn_printingenhanced-v1.1.5:ACTIVE' component context can't be created, impl: 'PrintingPreviewController'! cause of TypeError: ComponentReferenceController._injectService: Exception during injection of reference 'mapWidgetModel' with service:'undefined' cause of TypeError: this[c] is undefined" Dojo 29 layer.js:1173:375 Dojo 10

Every bundle on its own in an app works. I ask for support.

With kind regards Jörg Arnold

matthiasstein commented 4 years ago

I cannot reproduce this error. In this app both bundles run together without any problems: https://demos.conterra.de/sandbox/resources/apps/printingenhancedquerybuildertest

Do you use any other bundles?

JoergArnold commented 4 years ago

We use a lot of other bundles .. but I can trace it back to this combination in my app When I open the demo link from you, the same happens on my PC as you can see in the screenshot below.

Demo_App .

matthiasstein commented 4 years ago

Which Firefox version do you use? Can you try to use another browser?

matthiasstein commented 4 years ago

It looks like there's a timing problem. I can rarely recreate the error. I have added new bundle test versions to the app. Could you test it again? https://demos.conterra.de/sandbox/resources/apps/printingenhancedquerybuildertest

JoergArnold commented 4 years ago

It does indeed seem to be due to the version of the browser:

Problem exists with FireFox: 68.10.0esr (64-Bit) (our standard-browser at work)

Google Chrome: Version 84.0.4147.105 (Offizieller Build) (64-Bit) workes fine.

JoergArnold commented 4 years ago

It looks like there's a timing problem. I can rarely recreate the error. I have added new bundle test versions to the app. Could you test it again? https://demos.conterra.de/sandbox/resources/apps/printingenhancedquerybuildertest

Now the demo works in FireFox.

matthiasstein commented 4 years ago

Great I will release new versions of the bundles.

JoergArnold commented 4 years ago

After installing the new releases it works fine.. Thank you