Qlik Community

Integration, Extension & APIs

Discussion board where members can learn more about Integration, Extensions and API’s for Qlik Sense.

Announcements
IMPORTANT security patches for GeoAnalytics Server available to download: READ DETAILS
cancel
Showing results for 
Search instead for 
Did you mean: 
alyssabrouse
Contributor II
Contributor II

Struggling to bootstrap my mashup with a webpack module

I'm migrating my traditional requireJS Angular 1.x mashup to webpack, and struggling to bootstrap it to my module & qlik-angular after qlik has been loaded...

var app = 'app';

module.exports = app;

var baseUrl = 'https://myhub:443/resources';

require('script-loader!./require.js');

window.require.config({baseUrl: baseUrl});

window.require(['js/qlik'], function (qlik) {

  qlik.setOnError(function (error) {

    console.log('Qlik Instance error: [' + error.code + '] ' + error.message);

  });

  // globalQlikInstance = qlik;

  require('angular-ui-router');

  var routesConfig = require('./routes');

  var hello = require('./app/hello');

  angular

  .module(app, ['ui.router'])

  .config(routesConfig)

  .component('app', hello);

  angular.bootstrap(document, ['app', 'qlik-angular']);

}, function (err) {

  console.log('Error loading qlik resources.' + err);

});

I receive an error: App already bootstrapped with this element 'document'

Am I doing something horribly wrong here? I am admittedly new to webpack.

1 Solution

Accepted Solutions
Francis_Kabinoff
Employee
Employee

Do you have the qva-bootstrap attribute on the html tag set to false?

<!DOCTYPE html>

<html qva-bootstrap="false"> <!--notice the qva-bootstrap="false" attribute-->

  <head>

  </head>

  <body>

  </body>

</html>

View solution in original post

2 Replies
Francis_Kabinoff
Employee
Employee

Do you have the qva-bootstrap attribute on the html tag set to false?

<!DOCTYPE html>

<html qva-bootstrap="false"> <!--notice the qva-bootstrap="false" attribute-->

  <head>

  </head>

  <body>

  </body>

</html>

alyssabrouse
Contributor II
Contributor II
Author

Man, that was silly.  Thank you.  Yes I forgot to bring that back in.