liqd / adhocracy-plus

adhocracy+ is a SaaS platform to make digital democracy easy for everyone
https://adhocracy.plus/
GNU Affero General Public License v3.0
78 stars 20 forks source link

Uncaught ReferenceError: exports is not defined #2540

Closed erelsgl closed 11 months ago

erelsgl commented 11 months ago

URL: http://localhost:8004/ user: user@liqd.net expected behaviour: Page should load quickly and without errors. behaviour: Page loads very slowly, and I see an error in the Javascript console: "Uncaught ReferenceError: exports is not defined" important screensize: irrelevant device & browser: Windows 11, Firefox 119. The server runs on WSL. Comment/Question: Here is the full error message:

Uncaught ReferenceError: exports is not defined
    <anonymous> webpack://adhocracy-plus/./node_modules/react-markdown/index.js?:4
    js http://localhost:8004/static/adhocracy4.js:1049
    __webpack_require__ http://localhost:8004/static/adhocracy4.js:1073
    <anonymous> webpack://adhocracy-plus/./node_modules/adhocracy4/adhocracy4/comments_async/static/comments_async/comment.jsx?:15
    jsx http://localhost:8004/static/adhocracy4.js:189
    __webpack_require__ http://localhost:8004/static/adhocracy4.js:1073
    <anonymous> webpack://adhocracy-plus/./node_modules/adhocracy4/adhocracy4/comments_async/static/comments_async/comment_list.jsx?:9
    jsx http://localhost:8004/static/adhocracy4.js:219
    __webpack_require__ http://localhost:8004/static/adhocracy4.js:1073
    <anonymous> webpack://adhocracy-plus/./node_modules/adhocracy4/adhocracy4/comments_async/static/comments_async/comment_box.jsx?:15
    jsx http://localhost:8004/static/adhocracy4.js:199
    __webpack_require__ http://localhost:8004/static/adhocracy4.js:1073
    <anonymous> webpack://adhocracy-plus/./node_modules/adhocracy4/adhocracy4/comments_async/static/comments_async/react_comments_async.jsx?:10
    jsx http://localhost:8004/static/adhocracy4.js:279
    __webpack_require__ http://localhost:8004/static/adhocracy4.js:1073
    <anonymous> webpack://adhocracy-plus/./node_modules/adhocracy4/index.js?:81
    js http://localhost:8004/static/adhocracy4.js:479
    __webpack_require__ http://localhost:8004/static/adhocracy4.js:1073
    <anonymous> webpack://adhocracy-plus/./apps/moderatorremark/assets/idea_remarks.js?:8
    js http://localhost:8004/static/adhocracy4.js:59
    __webpack_require__ http://localhost:8004/static/adhocracy4.js:1073
    <anonymous> webpack://adhocracy-plus/./adhocracy-plus/assets/js/app.js?:15
    js http://localhost:8004/static/adhocracy4.js:19
    __webpack_require__ http://localhost:8004/static/adhocracy4.js:1073
    <anonymous> http://localhost:8004/static/adhocracy4.js:1230
    <anonymous> http://localhost:8004/static/adhocracy4.js:1234
goapunk commented 11 months ago

Hi @erelsgl , thanks for reporting this. We only do development on linux or mac, so the steps in the readme most likely won't work on Windows (or WSL? I personally have no experience with WSL). As we don't have a windows machine to test it I'm not sure I can help you here. It looks like something is wrong with the webpack build process. What version of nodejs are you using? You could also try running npm run build and python manage.py runserver 8004 instead of make watch, just to rule out issues with the Makefile.

erelsgl commented 11 months ago

I have nodejs version 12.22.9, npm version 8.5.1, Python version 3.10.12, and pip version 22.0.2. What are the supported versions?

goapunk commented 11 months ago

We currently use nodejs 18. 12 is quite old and end of life. So maybe updating nodejs will help

erelsgl commented 11 months ago

Updating to nodejs 20.9 (the LTS) did not solve the problem.

goapunk commented 11 months ago

Could you describe your setup a bit more? Are you running this on your local computer / laptop? Or an a real server? If you run it locally for testing: could you post the full output of make clean && make install ?

erelsgl commented 11 months ago

I am running on my own computer, for testing during development. Here is the full output:

root@ErelHpWindows:/mnt/d/Dropbox/ariel-research/adhocracy-plus# make clean && make install
if [ -f package-lock.json ]; then rm package-lock.json; fi
if [ -d node_modules ]; then rm -rf node_modules; fi
if [ -d /mnt/d/Envs/adhocracy-hp ]; then rm -rf /mnt/d/Envs/adhocracy-hp; fi
npm install --no-save
npm WARN skipping integrity check for git dependency ssh://git@github.com/liqd/adhocracy4.git
npm WARN deprecated @babel/plugin-proposal-unicode-property-regex@7.18.6: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-unicode-property-regex instead.

> adhocracy-plus@1.0.0-dev.1 postinstall
> husky install

husky - Git hooks installed

added 1302 packages, and audited 1303 packages in 2m

252 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities
npm run build

> adhocracy-plus@1.0.0-dev.1 build
> webpack --config webpack.dev.js

assets by status 200 KiB [cached] 1 asset
assets by path images/ 1.97 MiB
  assets by path images/*.svg 1.86 MiB 83 assets
  assets by path images/*.png 112 KiB 16 assets
assets by path fonts/ 2.09 MiB 21 assets
assets by path *.js 22.5 MiB
  asset adhocracy4.js 3.8 MiB [compared for emit] (name: adhocracy4)
  asset documents.js 3.59 MiB [compared for emit] (name: documents)
  asset moderation_notification_list.js 3.56 MiB [compared for emit] (name: moderation_notification_list)
  + 17 assets
assets by path *.css 885 KiB
  asset adhocracy4.css 508 KiB [compared for emit] (name: adhocracy4)
  asset a4maps_choose_polygon.css 93.6 KiB [compared for emit] (name: a4maps_choose_polygon)
  asset a4maps_display_points.css 88.3 KiB [compared for emit] (name: a4maps_display_points)
  + 4 assets
orphan modules 684 KiB (javascript) 4.03 MiB (asset) 1.08 KiB (runtime) [orphan] 117 modules
runtime modules 21.5 KiB 94 modules
modules by path ./node_modules/ 4.18 MiB (javascript) 201 KiB (css/mini-extract)
  javascript modules 4.18 MiB 294 modules
  css modules 201 KiB
    modules by path ./node_modules/@fortawesome/fontawesome-free/scss/*.scss 72.3 KiB 4 modules
    + 8 modules
modules by path ./apps/ 199 KiB 40 modules
modules by path ./adhocracy-plus/assets/ 6.05 KiB (javascript) 414 KiB (css/mini-extract)
  javascript modules 6.05 KiB 6 modules
  css modules 414 KiB
    css ./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./node_modules/sass-loader/dist/cjs.js!./adhocracy-plus/assets/extra_css/_slick-theme.css 2.54 KiB [built] [code generated]
    css ./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./node_modules/sass-loader/dist/cjs.js!./adhocracy-plus/assets/scss/style.scss 412 KiB [built] [code generated]
external "django" 42 bytes [built] [code generated]

WARNING in ./node_modules/@fortawesome/fontawesome-free/scss/brands.scss (./node_modules/@fortawesome/fontawesome-free/scss/brands.scss.webpack[javascript/auto]!=!./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./node_modules/sass-loader/dist/cjs.js!./node_modules/@fortawesome/fontawesome-free/scss/brands.scss)
Module Warning (from ./node_modules/sass-loader/dist/cjs.js):
Deprecation Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0.

Recommendation: math.div(20em, 16) or calc(20em / 16)

More info and automated migrator: https://sass-lang.com/d/slash-div

node_modules/@fortawesome/fontawesome-free/scss/_variables.scss 12:25  @import
node_modules/@fortawesome/fontawesome-free/scss/brands.scss 5:9        root stylesheet

 @ ./node_modules/@fortawesome/fontawesome-free/scss/brands.scss

WARNING in ./node_modules/@fortawesome/fontawesome-free/scss/fontawesome.scss (./node_modules/@fortawesome/fontawesome-free/scss/fontawesome.scss.webpack[javascript/auto]!=!./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./node_modules/sass-loader/dist/cjs.js!./node_modules/@fortawesome/fontawesome-free/scss/fontawesome.scss)
Module Warning (from ./node_modules/sass-loader/dist/cjs.js):
Deprecation Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0.

Recommendation: math.div($fa-li-width * 5, 4) or calc($fa-li-width * 5 / 4)

More info and automated migrator: https://sass-lang.com/d/slash-div

node_modules/@fortawesome/fontawesome-free/scss/_list.scss 6:16        @import
node_modules/@fortawesome/fontawesome-free/scss/fontawesome.scss 10:9  root stylesheet

 @ ./node_modules/@fortawesome/fontawesome-free/scss/fontawesome.scss

WARNING in ./node_modules/@fortawesome/fontawesome-free/scss/fontawesome.scss (./node_modules/@fortawesome/fontawesome-free/scss/fontawesome.scss.webpack[javascript/auto]!=!./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./node_modules/sass-loader/dist/cjs.js!./node_modules/@fortawesome/fontawesome-free/scss/fontawesome.scss)
Module Warning (from ./node_modules/sass-loader/dist/cjs.js):
Deprecation Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0.

Recommendation: math.div(3em, 4) or calc(3em / 4)

More info and automated migrator: https://sass-lang.com/d/slash-div

node_modules/@fortawesome/fontawesome-free/scss/_larger.scss 7:17     @import
node_modules/@fortawesome/fontawesome-free/scss/fontawesome.scss 8:9  root stylesheet

 @ ./node_modules/@fortawesome/fontawesome-free/scss/fontawesome.scss

WARNING in ./node_modules/@fortawesome/fontawesome-free/scss/fontawesome.scss (./node_modules/@fortawesome/fontawesome-free/scss/fontawesome.scss.webpack[javascript/auto]!=!./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./node_modules/sass-loader/dist/cjs.js!./node_modules/@fortawesome/fontawesome-free/scss/fontawesome.scss)
Module Warning (from ./node_modules/sass-loader/dist/cjs.js):
Deprecation Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0.

Recommendation: math.div(4em, 3) or calc(4em / 3)

More info and automated migrator: https://sass-lang.com/d/slash-div

node_modules/@fortawesome/fontawesome-free/scss/_larger.scss 6:15     @import
node_modules/@fortawesome/fontawesome-free/scss/fontawesome.scss 8:9  root stylesheet

 @ ./node_modules/@fortawesome/fontawesome-free/scss/fontawesome.scss

WARNING in ./node_modules/@fortawesome/fontawesome-free/scss/fontawesome.scss (./node_modules/@fortawesome/fontawesome-free/scss/fontawesome.scss.webpack[javascript/auto]!=!./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./node_modules/sass-loader/dist/cjs.js!./node_modules/@fortawesome/fontawesome-free/scss/fontawesome.scss)
Module Warning (from ./node_modules/sass-loader/dist/cjs.js):
Deprecation Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0.

Recommendation: math.div(20em, 16) or calc(20em / 16)

More info and automated migrator: https://sass-lang.com/d/slash-div

node_modules/@fortawesome/fontawesome-free/scss/_variables.scss 12:25  @import
node_modules/@fortawesome/fontawesome-free/scss/fontawesome.scss 5:9   root stylesheet

 @ ./node_modules/@fortawesome/fontawesome-free/scss/fontawesome.scss

WARNING in ./node_modules/@fortawesome/fontawesome-free/scss/regular.scss (./node_modules/@fortawesome/fontawesome-free/scss/regular.scss.webpack[javascript/auto]!=!./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./node_modules/sass-loader/dist/cjs.js!./node_modules/@fortawesome/fontawesome-free/scss/regular.scss)
Module Warning (from ./node_modules/sass-loader/dist/cjs.js):
Deprecation Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0.

Recommendation: math.div(20em, 16) or calc(20em / 16)

More info and automated migrator: https://sass-lang.com/d/slash-div

node_modules/@fortawesome/fontawesome-free/scss/_variables.scss 12:25  @import
node_modules/@fortawesome/fontawesome-free/scss/regular.scss 5:9       root stylesheet

 @ ./node_modules/@fortawesome/fontawesome-free/scss/regular.scss

WARNING in ./node_modules/@fortawesome/fontawesome-free/scss/solid.scss (./node_modules/@fortawesome/fontawesome-free/scss/solid.scss.webpack[javascript/auto]!=!./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./node_modules/sass-loader/dist/cjs.js!./node_modules/@fortawesome/fontawesome-free/scss/solid.scss)
Module Warning (from ./node_modules/sass-loader/dist/cjs.js):
Deprecation Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0.

Recommendation: math.div(20em, 16) or calc(20em / 16)

More info and automated migrator: https://sass-lang.com/d/slash-div

node_modules/@fortawesome/fontawesome-free/scss/_variables.scss 12:25  @import
node_modules/@fortawesome/fontawesome-free/scss/solid.scss 5:9         root stylesheet

 @ ./node_modules/@fortawesome/fontawesome-free/scss/solid.scss

webpack 5.88.0 compiled with 7 warnings in 73804 ms
if [ ! -f /mnt/d/Envs/adhocracy-hp/bin/python3 ]; then python3 -m venv /mnt/d/Envs/adhocracy-hp; fi
/mnt/d/Envs/adhocracy-hp/bin/python -m pip install --upgrade -r requirements/dev.txt
Collecting adhocracy4
  Using cached adhocracy4-2309.dev19+gdb03f34-py3-none-any.whl
Collecting django-autoslug
  Cloning https://github.com/liqd/django-autoslug.git (to revision liqd2212) to /tmp/pip-install-2g925ocs/django-autoslug_161d571efbda44739421d6f2e20fe49a
  Running command git clone --filter=blob:none --quiet https://github.com/liqd/django-autoslug.git /tmp/pip-install-2g925ocs/django-autoslug_161d571efbda44739421d6f2e20fe49a
  Running command git checkout -q 3bed01a6f3ae55d947751fc69d393babf4857d76
  Resolved https://github.com/liqd/django-autoslug.git to commit 3bed01a6f3ae55d947751fc69d393babf4857d76
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting brotli==1.0.9
  Using cached Brotli-1.0.9-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (2.7 MB)
Collecting django-cloudflare-push==0.2.2
  Using cached django_cloudflare_push-0.2.2-py2.py3-none-any.whl (4.0 kB)
Collecting django_csp==3.7
  Using cached django_csp-3.7-py2.py3-none-any.whl (17 kB)
Collecting django-parler==2.3
  Using cached django_parler-2.3-py3-none-any.whl (83 kB)
Collecting sentry-sdk==1.25.1
  Using cached sentry_sdk-1.25.1-py2.py3-none-any.whl (206 kB)
Collecting wagtail==4.1.6
  Using cached wagtail-4.1.6-py3-none-any.whl (8.4 MB)
Collecting whitenoise==6.4.0
  Using cached whitenoise-6.4.0-py3-none-any.whl (19 kB)
Collecting xmltodict==0.13.0
  Using cached xmltodict-0.13.0-py2.py3-none-any.whl (10.0 kB)
Collecting zeep==4.2.1
  Using cached zeep-4.2.1-py3-none-any.whl (101 kB)
Collecting urllib3==2.0.3
  Using cached urllib3-2.0.3-py3-none-any.whl (123 kB)
Collecting redis==5.0.0
  Using cached redis-5.0.0-py3-none-any.whl (250 kB)
Collecting Django==3.2.19
  Using cached Django-3.2.19-py3-none-any.whl (7.9 MB)
Collecting django-allauth==0.54.0
  Using cached django-allauth-0.54.0.tar.gz (737 kB)
  Preparing metadata (setup.py) ... done
Collecting django-background-tasks==1.2.5
  Using cached django-background-tasks-1.2.5.tar.gz (20 kB)
  Preparing metadata (setup.py) ... done
Collecting django-ckeditor==6.5.1
  Using cached django_ckeditor-6.5.1-py3-none-any.whl (2.4 MB)
Collecting django-filter==22.1
  Using cached django_filter-22.1-py3-none-any.whl (80 kB)
Collecting django-widget-tweaks==1.4.12
  Using cached django_widget_tweaks-1.4.12-py3-none-any.whl (8.9 kB)
Collecting djangorestframework==3.14.0
  Using cached djangorestframework-3.14.0-py3-none-any.whl (1.1 MB)
Collecting easy-thumbnails[svg]==2.8.5
  Using cached easy_thumbnails-2.8.5-py3-none-any.whl (75 kB)
Collecting jsonfield==3.1.0
  Using cached jsonfield-3.1.0-py3-none-any.whl (8.0 kB)
Collecting python-dateutil==2.8.2
  Using cached python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB)
Collecting rules==3.3
  Using cached rules-3.3-py2.py3-none-any.whl (25 kB)
Collecting celery==5.3.1
  Using cached celery-5.3.1-py3-none-any.whl (420 kB)
Collecting black==23.3.0
  Using cached black-23.3.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.7 MB)
Collecting django-debug-toolbar==4.1.0
  Using cached django_debug_toolbar-4.1.0-py3-none-any.whl (222 kB)
Collecting factory-boy==3.2.1
  Using cached factory_boy-3.2.1-py2.py3-none-any.whl (35 kB)
Collecting Faker==18.10.1
  Using cached Faker-18.10.1-py3-none-any.whl (1.7 MB)
Collecting flake8==6.0.0
  Using cached flake8-6.0.0-py2.py3-none-any.whl (57 kB)
Collecting freezegun==1.2.2
  Using cached freezegun-1.2.2-py3-none-any.whl (17 kB)
Collecting isort==5.12.0
  Using cached isort-5.12.0-py3-none-any.whl (91 kB)
Collecting psycopg2-binary==2.9.6
  Using cached psycopg2_binary-2.9.6-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.0 MB)
Collecting pytest==7.3.2
  Using cached pytest-7.3.2-py3-none-any.whl (320 kB)
Collecting pytest-cov==4.1.0
  Using cached pytest_cov-4.1.0-py3-none-any.whl (21 kB)
Collecting pytest-django==4.5.2
  Using cached pytest_django-4.5.2-py3-none-any.whl (20 kB)
Collecting pytest-factoryboy==2.5.1
  Using cached pytest_factoryboy-2.5.1-py3-none-any.whl (15 kB)
Collecting certifi
  Using cached certifi-2023.7.22-py3-none-any.whl (158 kB)
Collecting draftjs-exporter<3.0,>=2.1.5
  Using cached draftjs_exporter-2.1.7-py3-none-any.whl (43 kB)
Collecting django-treebeard<5.0,>=4.5.1
  Using cached django_treebeard-4.7-py3-none-any.whl (93 kB)
Collecting Willow<1.5,>=1.4
  Using cached Willow-1.4.1-py2.py3-none-any.whl (106 kB)
Collecting l18n>=2018.5
  Using cached l18n-2021.3-py3-none-any.whl (51 kB)
Collecting telepath<1,>=0.1.1
  Using cached telepath-0.3.1-py38-none-any.whl (10 kB)
Collecting django-modelcluster<7.0,>=6.0
  Using cached django_modelcluster-6.1-py2.py3-none-any.whl (26 kB)
Collecting anyascii>=0.1.5
  Using cached anyascii-0.3.2-py3-none-any.whl (289 kB)
Collecting requests<3.0,>=2.11.1
  Using cached requests-2.31.0-py3-none-any.whl (62 kB)
Collecting django-taggit<4.0,>=2.0
  Using cached django_taggit-3.1.0-py3-none-any.whl (60 kB)
Collecting html5lib<2,>=0.999
  Using cached html5lib-1.1-py2.py3-none-any.whl (112 kB)
Collecting Pillow<10.0.0,>=4.0.0
  Using cached Pillow-9.5.0-cp310-cp310-manylinux_2_28_x86_64.whl (3.4 MB)
Collecting beautifulsoup4<4.12,>=4.8
  Using cached beautifulsoup4-4.11.2-py3-none-any.whl (129 kB)
Collecting django-permissionedforms<1.0,>=0.1
  Using cached django_permissionedforms-0.1-py2.py3-none-any.whl (5.7 kB)
Collecting openpyxl<4.0,>=3.0.10
  Using cached openpyxl-3.1.2-py2.py3-none-any.whl (249 kB)
Collecting requests-toolbelt>=0.7.1
  Using cached requests_toolbelt-1.0.0-py2.py3-none-any.whl (54 kB)
Collecting platformdirs>=1.4.0
  Using cached platformdirs-3.11.0-py3-none-any.whl (17 kB)
Collecting lxml>=4.6.0
  Using cached lxml-4.9.3-cp310-cp310-manylinux_2_28_x86_64.whl (7.9 MB)
Collecting attrs>=17.2.0
  Using cached attrs-23.1.0-py3-none-any.whl (61 kB)
Collecting requests-file>=1.5.1
  Using cached requests_file-1.5.1-py2.py3-none-any.whl (3.7 kB)
Collecting pytz
  Using cached pytz-2023.3.post1-py2.py3-none-any.whl (502 kB)
Collecting isodate>=0.5.4
  Using cached isodate-0.6.1-py2.py3-none-any.whl (41 kB)
Collecting async-timeout>=4.0.2
  Using cached async_timeout-4.0.3-py3-none-any.whl (5.7 kB)
Collecting sqlparse>=0.2.2
  Using cached sqlparse-0.4.4-py3-none-any.whl (41 kB)
Collecting asgiref<4,>=3.3.2
  Using cached asgiref-3.7.2-py3-none-any.whl (24 kB)
Collecting pyjwt[crypto]>=1.7
  Using cached PyJWT-2.8.0-py3-none-any.whl (22 kB)
Collecting python3-openid>=3.0.8
  Using cached python3_openid-3.2.0-py3-none-any.whl (133 kB)
Collecting requests-oauthlib>=0.3.0
  Using cached requests_oauthlib-1.3.1-py2.py3-none-any.whl (23 kB)
Collecting django-compat>=1.0.13
  Using cached django-compat-1.0.15.tar.gz (21 kB)
  Preparing metadata (setup.py) ... done
Collecting six
  Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting django-js-asset>=2.0
  Using cached django_js_asset-2.1.0-py3-none-any.whl (4.7 kB)
Collecting reportlab
  Using cached reportlab-4.0.7-py3-none-any.whl (1.9 MB)
Collecting svglib
  Using cached svglib-1.5.1.tar.gz (913 kB)
  Preparing metadata (setup.py) ... done
Collecting kombu<6.0,>=5.3.1
  Using cached kombu-5.3.3-py3-none-any.whl (199 kB)
Collecting tzdata>=2022.7
  Using cached tzdata-2023.3-py2.py3-none-any.whl (341 kB)
Collecting click-plugins>=1.1.1
  Using cached click_plugins-1.1.1-py2.py3-none-any.whl (7.5 kB)
Collecting click<9.0,>=8.1.2
  Using cached click-8.1.7-py3-none-any.whl (97 kB)
Collecting billiard<5.0,>=4.1.0
  Using cached billiard-4.2.0-py3-none-any.whl (86 kB)
Collecting vine<6.0,>=5.0.0
  Using cached vine-5.1.0-py3-none-any.whl (9.6 kB)
Collecting click-didyoumean>=0.3.0
  Using cached click_didyoumean-0.3.0-py3-none-any.whl (2.7 kB)
Collecting click-repl>=0.2.0
  Using cached click_repl-0.3.0-py3-none-any.whl (10 kB)
Collecting mypy-extensions>=0.4.3
  Using cached mypy_extensions-1.0.0-py3-none-any.whl (4.7 kB)
Collecting tomli>=1.1.0
  Using cached tomli-2.0.1-py3-none-any.whl (12 kB)
Collecting pathspec>=0.9.0
  Using cached pathspec-0.11.2-py3-none-any.whl (29 kB)
Collecting packaging>=22.0
  Using cached packaging-23.2-py3-none-any.whl (53 kB)
Collecting pycodestyle<2.11.0,>=2.10.0
  Using cached pycodestyle-2.10.0-py2.py3-none-any.whl (41 kB)
Collecting pyflakes<3.1.0,>=3.0.0
  Using cached pyflakes-3.0.1-py2.py3-none-any.whl (62 kB)
Collecting mccabe<0.8.0,>=0.7.0
  Using cached mccabe-0.7.0-py2.py3-none-any.whl (7.3 kB)
Collecting pluggy<2.0,>=0.12
  Using cached pluggy-1.3.0-py3-none-any.whl (18 kB)
Collecting exceptiongroup>=1.0.0rc8
  Using cached exceptiongroup-1.1.3-py3-none-any.whl (14 kB)
Collecting iniconfig
  Using cached iniconfig-2.0.0-py3-none-any.whl (5.9 kB)
Collecting coverage[toml]>=5.2.1
  Using cached coverage-7.3.2-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (227 kB)
Collecting inflection
  Using cached inflection-0.5.1-py2.py3-none-any.whl (9.5 kB)
Collecting typing_extensions
  Using cached typing_extensions-4.8.0-py3-none-any.whl (31 kB)
Collecting bleach[css]
  Using cached bleach-6.1.0-py3-none-any.whl (162 kB)
Collecting XlsxWriter
  Using cached XlsxWriter-3.1.9-py3-none-any.whl (154 kB)
Collecting python-magic
  Using cached python_magic-0.4.27-py2.py3-none-any.whl (13 kB)
Collecting django-multiselectfield
  Using cached django_multiselectfield-0.1.12-py3-none-any.whl (15 kB)
Collecting django-enumfield
  Using cached django_enumfield-3.1-py2.py3-none-any.whl (18 kB)
Collecting soupsieve>1.2
  Using cached soupsieve-2.5-py3-none-any.whl (36 kB)
Collecting prompt-toolkit>=3.0.36
  Using cached prompt_toolkit-3.0.39-py3-none-any.whl (385 kB)
Collecting webencodings
  Using cached webencodings-0.5.1-py2.py3-none-any.whl (11 kB)
Collecting amqp<6.0.0,>=5.1.1
  Using cached amqp-5.2.0-py3-none-any.whl (50 kB)
Collecting et-xmlfile
  Using cached et_xmlfile-1.1.0-py3-none-any.whl (4.7 kB)
Collecting cryptography>=3.4.0
  Using cached cryptography-41.0.5-cp37-abi3-manylinux_2_28_x86_64.whl (4.4 MB)
Collecting defusedxml
  Using cached defusedxml-0.7.1-py2.py3-none-any.whl (25 kB)
Collecting idna<4,>=2.5
  Using cached idna-3.4-py3-none-any.whl (61 kB)
Collecting charset-normalizer<4,>=2
  Using cached charset_normalizer-3.3.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (142 kB)
Collecting oauthlib>=3.0.0
  Using cached oauthlib-3.2.2-py3-none-any.whl (151 kB)
Collecting tinycss2<1.3,>=1.1.0
  Using cached tinycss2-1.2.1-py3-none-any.whl (21 kB)
Collecting cssselect2>=0.2.0
  Using cached cssselect2-0.7.0-py3-none-any.whl (15 kB)
Collecting cffi>=1.12
  Using cached cffi-1.16.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (443 kB)
Collecting wcwidth
  Using cached wcwidth-0.2.9-py2.py3-none-any.whl (102 kB)
Collecting pycparser
  Using cached pycparser-2.21-py2.py3-none-any.whl (118 kB)
Using legacy 'setup.py install' for django-allauth, since package 'wheel' is not installed.
Using legacy 'setup.py install' for django-background-tasks, since package 'wheel' is not installed.
Using legacy 'setup.py install' for django-compat, since package 'wheel' is not installed.
Using legacy 'setup.py install' for svglib, since package 'wheel' is not installed.
Building wheels for collected packages: django-autoslug
  Building wheel for django-autoslug (pyproject.toml) ... done
  Created wheel for django-autoslug: filename=django_autoslug-1.9.8-py2.py3-none-any.whl size=14607 sha256=8997a5315533724fe801c077c263670e6f7fd322359ae7db6ea3c539bb3a486b
  Stored in directory: /tmp/pip-ephem-wheel-cache-2r7dohs5/wheels/41/03/15/ba7e12f5612c21575e289c1ff4785b9b65ef619a1e63bb2791
Successfully built django-autoslug
Installing collected packages: webencodings, wcwidth, rules, pytz, draftjs-exporter, django-enumfield, django-cloudflare-push, django-autoslug, brotli, xmltodict, XlsxWriter, Willow, whitenoise, vine, urllib3, tzdata, typing_extensions, tomli, tinycss2, telepath, sqlparse, soupsieve, six, python-magic, pyjwt, pyflakes, pycparser, pycodestyle, psycopg2-binary, prompt-toolkit, pluggy, platformdirs, Pillow, pathspec, packaging, oauthlib, mypy-extensions, mccabe, lxml, isort, iniconfig, inflection, idna, exceptiongroup, et-xmlfile, django-widget-tweaks, defusedxml, coverage, click, charset-normalizer, certifi, billiard, attrs, async-timeout, anyascii, sentry-sdk, requests, reportlab, redis, python3-openid, python-dateutil, pytest, openpyxl, l18n, isodate, html5lib, flake8, django-compat, cssselect2, click-repl, click-plugins, click-didyoumean, cffi, bleach, black, beautifulsoup4, asgiref, amqp, svglib, requests-toolbelt, requests-oauthlib, requests-file, pytest-django, pytest-cov, kombu, freezegun, Faker, django-background-tasks, Django, cryptography, zeep, jsonfield, factory-boy, easy-thumbnails, djangorestframework, django-treebeard, django-taggit, django-permissionedforms, django-parler, django-multiselectfield, django-modelcluster, django-js-asset, django-filter, django-debug-toolbar, django_csp, celery, wagtail, pytest-factoryboy, django-ckeditor, django-allauth, adhocracy4
  Running setup.py install for django-compat ... done
  Running setup.py install for svglib ... done
  Running setup.py install for django-background-tasks ... done
  Running setup.py install for django-allauth ... done
Successfully installed Django-3.2.19 Faker-18.10.1 Pillow-9.5.0 Willow-1.4.1 XlsxWriter-3.1.9 adhocracy4-2309.dev19+gdb03f34 amqp-5.2.0 anyascii-0.3.2 asgiref-3.7.2 async-timeout-4.0.3 attrs-23.1.0 beautifulsoup4-4.11.2 billiard-4.2.0 black-23.3.0 bleach-6.1.0 brotli-1.0.9 celery-5.3.1 certifi-2023.7.22 cffi-1.16.0 charset-normalizer-3.3.2 click-8.1.7 click-didyoumean-0.3.0 click-plugins-1.1.1 click-repl-0.3.0 coverage-7.3.2 cryptography-41.0.5 cssselect2-0.7.0 defusedxml-0.7.1 django-allauth-0.54.0 django-autoslug-1.9.8 django-background-tasks-1.2.5 django-ckeditor-6.5.1 django-cloudflare-push-0.2.2 django-compat-1.0.15 django-debug-toolbar-4.1.0 django-enumfield-3.1 django-filter-22.1 django-js-asset-2.1.0 django-modelcluster-6.1 django-multiselectfield-0.1.12 django-parler-2.3 django-permissionedforms-0.1 django-taggit-3.1.0 django-treebeard-4.7 django-widget-tweaks-1.4.12 django_csp-3.7 djangorestframework-3.14.0 draftjs-exporter-2.1.7 easy-thumbnails-2.8.5 et-xmlfile-1.1.0 exceptiongroup-1.1.3 factory-boy-3.2.1 flake8-6.0.0 freezegun-1.2.2 html5lib-1.1 idna-3.4 inflection-0.5.1 iniconfig-2.0.0 isodate-0.6.1 isort-5.12.0 jsonfield-3.1.0 kombu-5.3.3 l18n-2021.3 lxml-4.9.3 mccabe-0.7.0 mypy-extensions-1.0.0 oauthlib-3.2.2 openpyxl-3.1.2 packaging-23.2 pathspec-0.11.2 platformdirs-3.11.0 pluggy-1.3.0 prompt-toolkit-3.0.39 psycopg2-binary-2.9.6 pycodestyle-2.10.0 pycparser-2.21 pyflakes-3.0.1 pyjwt-2.8.0 pytest-7.3.2 pytest-cov-4.1.0 pytest-django-4.5.2 pytest-factoryboy-2.5.1 python-dateutil-2.8.2 python-magic-0.4.27 python3-openid-3.2.0 pytz-2023.3.post1 redis-5.0.0 reportlab-4.0.7 requests-2.31.0 requests-file-1.5.1 requests-oauthlib-1.3.1 requests-toolbelt-1.0.0 rules-3.3 sentry-sdk-1.25.1 six-1.16.0 soupsieve-2.5 sqlparse-0.4.4 svglib-1.5.1 telepath-0.3.1 tinycss2-1.2.1 tomli-2.0.1 typing_extensions-4.8.0 tzdata-2023.3 urllib3-2.0.3 vine-5.1.0 wagtail-4.1.6 wcwidth-0.2.9 webencodings-0.5.1 whitenoise-6.4.0 xmltodict-0.13.0 zeep-4.2.1
/mnt/d/Envs/adhocracy-hp/bin/python manage.py migrate
Operations to perform:
  Apply all migrations: a4_candy_activities, a4_candy_budgeting, a4_candy_cms_contacts, a4_candy_cms_images, a4_candy_cms_news, a4_candy_cms_pages, a4_candy_cms_settings, a4_candy_cms_use_cases, a4_candy_debate, a4_candy_documents, a4_candy_ideas, a4_candy_interactive_events, a4_candy_mapideas, a4_candy_maps, a4_candy_moderatorfeedback, a4_candy_moderatorremark, a4_candy_newsletters, a4_candy_offlineevents, a4_candy_organisations, a4_candy_projects, a4_candy_topicprio, a4_candy_users, a4actions, a4administrative_districts, a4categories, a4comments, a4follows, a4labels, a4maps, a4modules, a4organisations, a4phases, a4polls, a4projects, a4ratings, a4reports, account, admin, auth, authtoken, background_task, contenttypes, easy_thumbnails, sessions, sites, socialaccount, taggit, wagtailadmin, wagtailcore, wagtaildocs, wagtailembeds, wagtailforms, wagtailimages, wagtailredirects, wagtailsearch, wagtailusers
Running migrations:
  No migrations to apply.
root@ErelHpWindows:/mnt/d/Dropbox/ariel-research/adhocracy-plus#
goapunk commented 11 months ago

@erelsgl I don't see anything obviously wrong, so I'm a bit clueless, sorry. I tried to replicate the error on my private windows machine with a fresh WSL installation but everything seemed to work fine for me there.

goapunk commented 11 months ago

Two unrelated things I can see in your logs:

This probably won't fix the actual issue with the Uncaught ReferenceError. The error occurs directly when you open the homepage (http://localhost:8004/)?

erelsgl commented 11 months ago

Thanks a lot for the advice! I moved the code to the home folder, and it is indeed much faster, and the Javascript error disappeared too! My guess is that there was some disk error that caused it. In any case, it is much more fun to run adhocracy+ now, when it runs fast. Thanks again!

goapunk commented 11 months ago

glad it's working!