Webpack: error on executing JavaScript and Vue.js files
Summary
After gdk update
, my local GitLab Development Kit (GDK) instance is no longer working due to Webpack errors. It seems that the JavaScript and Vue.js files are not executed at all. So no Vue.js component works anymore. My local instance is thus completely useless and I am blocked in development.
This bug could be related to the MR Update to latest webpack-dev-server (!80196 - merged)
Steps to reproduce
- Setup/update/reconfigure GitLab Development Kit (GDK) locally:
gdk install
,gdk update
,gdk reconfigure
- Start GDK:
gdk start
- Navigate to http://localhost:3000/
- Navigate to a MR: no components are loaded
- Modify JavaScript file
app/assets/javascripts/pages/profiles/preferences/show/index.js
- Navigate to user preferences http://localhost:3000/-/profile/preferences:
What is the current bug behavior?
It seems that the JavaScript and Vue.js files are not executed at all. So no Vue.js component works anymore.
What is the expected correct behavior?
JavaScript and Vue.js files are loaded and executed corretly and all components work.
Output of checks
Results of GitLab environment info
Expand for output related to GitLab environment info
$ bundle exec rake gitlab:env:info RAILS_ENV=development System information System: Ubuntu 20.04 Proxy: no Current User: jonas Using RVM: no Ruby Version: 2.7.5p203 Gem Version: 3.1.6 Bundler Version:2.3.6 Rake Version: 13.0.6 Redis Version: 6.0.16 Sidekiq Version:6.4.0 Go Version: go1.17.7 linux/amd64 GitLab information Version: 14.8.0-pre Revision: 0c033a97fbe Directory: /home/jonas/gdk/gitlab DB Adapter: PostgreSQL DB Version: 12.9 URL: http://127.0.0.1:3000 HTTP Clone URL: http://127.0.0.1:3000/some-group/some-project.git SSH Clone URL: ssh://git@127.0.0.1:2222/some-group/some-project.git Elasticsearch: no Geo: no Using LDAP: no Using Omniauth: yes Omniauth Providers: google_oauth2 GitLab Shell Version: 13.23.2 Repository storage paths: - default: /home/jonas/gdk/repositories GitLab Shell path: /home/jonas/gdk/gitlab-shell
Results of GitLab application Check
Expand for output related to the GitLab application check
$ bundle exec rake gitlab:check RAILS_ENV=development SANITIZE=true Checking GitLab subtasks ...Checking GitLab Shell ...
GitLab Shell: ... GitLab Shell version >= 13.23.2 ? ... OK (13.23.2) Running /home/jonas/gdk/gitlab-shell/bin/check {"content_length_bytes":90,"correlation_id":"01FW6494SBQRQWG4Q5M6KK1AAH","duration_ms":80,"level":"info","method":"GET","msg":"Finished HTTP request","status":200,"time":"2022-02-18T09:58:15Z","url":"http://127.0.0.1:3000/api/v4/internal/check"} Internal API available: OK Redis available via internal API: OK gitlab-shell self-check successful
Checking GitLab Shell ... Finished
Checking Gitaly ...
Gitaly: ... default ... OK
Checking Gitaly ... Finished
Checking Sidekiq ...
Sidekiq: ... Running? ... yes Number of Sidekiq processes (cluster/worker) ... 1/1
Checking Sidekiq ... Finished
Checking Incoming Email ...
Incoming Email: ... Reply by email is disabled in config/gitlab.yml
Checking Incoming Email ... Finished
Checking LDAP ...
LDAP: ... LDAP is disabled in config/gitlab.yml
Checking LDAP ... Finished
Checking GitLab App ...
Database config exists? ... yes All migrations up? ... yes Database contains orphaned GroupMembers? ... no GitLab config exists? ... yes GitLab config up to date? ... yes Log directory writable? ... yes Tmp directory writable? ... yes Uploads directory exists? ... yes Uploads directory has correct permissions? ... yes Uploads directory tmp has correct permissions? ... yes Systemd unit files or init script exist? ... no Try fixing it: Install the Service For more information see: doc/install/installation.md in section "Install the Service" Please fix the error above and rerun the checks. Systemd unit files or init script up-to-date? ... can't check because of previous errors Projects have namespace: ... 22/1 ... yes 22/2 ... yes 23/3 ... yes 24/4 ... yes 25/5 ... yes 26/6 ... yes 27/7 ... yes 28/8 ... yes 12/9 ... yes 21/10 ... yes 15/11 ... yes 11/12 ... yes 14/13 ... yes 9/14 ... yes 7/15 ... yes 2/16 ... yes 16/17 ... yes 13/18 ... yes 52/19 ... yes 124/20 ... yes 124/21 ... yes 1/22 ... yes 125/23 ... yes 126/24 ... yes 1/25 ... yes 1/26 ... yes 128/27 ... yes 124/29 ... yes 129/30 ... yes 1/31 ... yes 1/32 ... yes 128/33 ... yes 1/34 ... yes 1/35 ... yes 134/36 ... yes 1/37 ... yes 1/41 ... yes 1/42 ... yes 1/43 ... yes 1/44 ... yes 1/45 ... yes 1/46 ... yes 1/47 ... yes 1/48 ... yes 1/50 ... yes Redis version >= 5.0.0? ... yes Ruby version >= 2.7.2 ? ... yes (2.7.5) Git user has default SSH configuration? ... yes Active users: ... 99 Is authorized keys file accessible? ... yes GitLab configured to store new projects in hashed storage? ... yes All projects are in hashed storage? ... yes Elasticsearch version 7.x (6.4 - 6.x deprecated to be removed in 13.8)? ... skipped (elasticsearch is disabled)
Checking GitLab App ... Finished
Checking GitLab subtasks ... Finished