[DRE-maint] Bug#890333: gitlab: javascript errors after upgrade to 9.5.4

Pirate Praveen praveen at debian.org
Tue Feb 13 15:40:03 UTC 2018


On 02/13/2018 08:19 PM, Libor Klepáč wrote:
> Package: gitlab
> Version: 9.5.4.+dfsg-2
> Severity: normal
> 
> Hello,
> after upgrading gitlab from 8.13.x to 9.5.4 we get no events in dashboard grids.

Thanks for testing the new version. We need to fix this before uploading
to unstable.

> Errors in firefox console  are
> ReferenceError: Controller is not defined [Zjistit více]    common.bundle.js:19235:1
> ../../../../javascript/jquery-atwho/jquery.atwho.js/</<     https://192.168.6.10/assets/webpack/common.bundle.js:19235:1
> ../../../../javascript/jquery-atwho/jquery.atwho.js/<       https://192.168.6.10/assets/webpack/common.bundle.js:19149:2
> ../../../../javascript/jquery-atwho/jquery.atwho.js         https://192.168.6.10/assets/webpack/common.bundle.js:18608:29
> __webpack_require__                                         https://192.168.6.10/assets/webpack/webpack_runtime.bundle.js:55:12
> ./commons/jquery.js                                         https://192.168.6.10/assets/webpack/common.bundle.js:21974:78
> __webpack_require__                                         https://192.168.6.10/assets/webpack/webpack_runtime.bundle.js:55:12
> ./commons/index.js                                          https://192.168.6.10/assets/webpack/common.bundle.js:21953:66
> __webpack_require__                                         https://192.168.6.10/assets/webpack/webpack_runtime.bundle.js:55:12
> webpackJsonpCallback                                        https://192.168.6.10/assets/webpack/webpack_runtime.bundle.js:26:23
> <anonymní>
> 
> and
> 
> TypeError: __WEBPACK_IMPORTED_MODULE_0_document_register_element___default(...) is not a function [Zjistit více]         main.bundle.js:10029:1
> ./behaviors/gl_emoji.js    https://192.168.6.10/assets/webpack/main.bundle.js:10029:1
> __webpack_require__        https://192.168.6.10/assets/webpack/webpack_runtime.bundle.js:55:12
> ./behaviors/index.js       https://192.168.6.10/assets/webpack/main.bundle.js:10089:68
> __webpack_require__        https://192.168.6.10/assets/webpack/webpack_runtime.bundle.js:55:12
> ./main.js/<                https://192.168.6.10/assets/webpack/main.bundle.js:22926:71
> ./main.js                  https://192.168.6.10/assets/webpack/main.bundle.js:22886:29
> __webpack_require__        https://192.168.6.10/assets/webpack/webpack_runtime.bundle.js:55:12
> webpackJsonpCallback       https://192.168.6.10/assets/webpack/webpack_runtime.bundle.js:26:23
> <anonymní>
> 
> I also tried to regenerate webapack and assets. It finishes without errors (after instaling node modules indexof and randomfill)
> 
> I also tried generate assets using yarn and
> # bundle exec rake gitlab:assets:compile

You may want to try like this
https://salsa.debian.org/ruby-team/gitlab/blob/master/debian/rake-tasks.sh#L39

> but it does not finish successfuly, complains about missing webpack-stats-plugin, which seems to be installed.
> 
> Any clues what can be done?

Try replacing jquery.atwho.js with the version from npm. (npm install
jquery-atwho, then webpack and asset precompile).

> This all bundler and node and webpack and etc. magic is ... (+ i have to allow traffic to our protected network, for npm to work)

We are getting very close to packaging all dependencies
https://wiki.debian.org/Javascript/Nodejs/Tasks/gitlab

I'm stuck with https://github.com/facebook/react/issues/12076 any help
on this is welcome.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 862 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-ruby-extras-maintainers/attachments/20180213/35646d9b/attachment.sig>


More information about the Pkg-ruby-extras-maintainers mailing list