openwisp / ansible-openwisp-wifi-login-pages

Ansible role to deploy and manage OpenWISP WiFi Login Pages
https://openwisp.org
4 stars 7 forks source link

Yarn error and blank page #26

Closed mikysal78 closed 1 month ago

mikysal78 commented 2 years ago

Hi, My server is Debian 11, I installed all openwisp2 with ansible. For ansible-openwisp-wifi-login-pages, I copied the default organization and only changed the variables based on my organization. I have 502 gateway error. If I do a permissions fix with this scripts:

#!/bin/bash
set -e
yarn
# everything owned by www-data
chown -R www-data:www-data .
# remove any world permission
chmod -R o-rwx .
sudo -u www-data yarn build --mode production
supervisorctl restart wifi_login_pages

I only have a blank page.

With the "yarn check" command I have these warnings and errors.

root@controller:wifi-login-pages # yarn check
yarn check v1.22.19
warning "@babel/helper-create-class-features-plugin#@babel/helper-annotate-as-pure@^7.14.5" could be deduped from "7.15.4" to "@babel/helper-annotate-as-pure@7.15.4"
warning "@babel/helper-create-class-features-plugin#@babel/helper-replace-supers@^7.14.5" could be deduped from "7.15.4" to "@babel/helper-replace-supers@7.15.4"
warning "@babel/helper-create-class-features-plugin#@babel/helper-split-export-declaration@^7.14.5" could be deduped from "7.15.4" to "@babel/helper-split-export-declaration@7.15.4"
warning "@babel/helper-module-transforms#@babel/helper-replace-supers@^7.15.0" could be deduped from "7.15.4" to "@babel/helper-replace-supers@7.15.4"
warning "@babel/helper-module-transforms#@babel/helper-simple-access@^7.14.8" could be deduped from "7.15.4" to "@babel/helper-simple-access@7.15.4"
warning "@babel/helper-module-transforms#@babel/helper-split-export-declaration@^7.14.5" could be deduped from "7.15.4" to "@babel/helper-split-export-declaration@7.15.4"
warning "@babel/traverse#@babel/helper-hoist-variables@^7.14.5" could be deduped from "7.15.4" to "@babel/helper-hoist-variables@7.15.4"
warning "@babel/traverse#@babel/helper-split-export-declaration@^7.14.5" could be deduped from "7.15.4" to "@babel/helper-split-export-declaration@7.15.4"
error "acorn" is wrong version: expected "8.4.1", got "7.4.1"
warning "autoprefixer#browserslist@^4.12.0" could be deduped from "4.16.7" to "browserslist@4.16.7"
warning "@babel/polyfill#regenerator-runtime@^0.13.4" could be deduped from "0.13.9" to "regenerator-runtime@0.13.9"
warning "@babel/preset-env#@babel/plugin-transform-spread@^7.14.6" could be deduped from "7.15.8" to "@babel/plugin-transform-spread@7.15.8"
warning "@babel/runtime#regenerator-runtime@^0.13.4" could be deduped from "0.13.9" to "regenerator-runtime@0.13.9"
warning "copy-webpack-plugin#fast-glob@^3.2.4" could be deduped from "3.2.11" to "fast-glob@3.2.11"
warning "eslint#@babel/code-frame#@babel/highlight@^7.10.4" could be deduped from "7.14.5" to "@babel/highlight@7.14.5"
warning "@babel/code-frame#@babel/highlight#@babel/helper-validator-identifier@^7.14.5" could be deduped from "7.14.9" to "@babel/helper-validator-identifier@7.14.9"
warning "autoprefixer#browserslist#electron-to-chromium@^1.3.723" could be deduped from "1.3.808" to "electron-to-chromium@1.3.808"
warning "autoprefixer#browserslist#node-releases@^1.1.71" could be deduped from "1.1.74" to "node-releases@1.1.74"
warning "enzyme#cheerio#tslib@^2.2.0" could be deduped from "2.3.0" to "tslib@2.3.0"
warning "ttag-cli#koa-router#http-errors@^1.7.3" could be deduped from "1.8.1" to "http-errors@1.8.1"
warning "ttag-cli#koa#http-errors@^1.6.3" could be deduped from "1.8.1" to "http-errors@1.8.1"
warning "@babel/core#@babel/helper-compilation-targets#browserslist@^4.16.6" could be deduped from "4.16.7" to "browserslist@4.16.7"
warning "@babel/preset-env#@babel/plugin-transform-object-super#@babel/helper-replace-supers@^7.14.5" could be deduped from "7.15.4" to "@babel/helper-replace-supers@7.15.4"
warning "@babel/plugin-transform-async-to-generator#@babel/helper-remap-async-to-generator#@babel/helper-annotate-as-pure@^7.14.5" could be deduped from "7.15.4" to "@babel/helper-annotate-as-pure@7.15.4"
warning "eslint#@babel/code-frame#@babel/highlight#@babel/helper-validator-identifier@^7.14.0" could be deduped from "7.14.9" to "@babel/helper-validator-identifier@7.14.9"
warning "aria-query#@babel/runtime-corejs3#regenerator-runtime@^0.13.4" could be deduped from "0.13.9" to "regenerator-runtime@0.13.9"
error "acorn-globals#acorn" not installed
error "espree#acorn" not installed
warning "@babel/helper-compilation-targets#browserslist#electron-to-chromium@^1.3.723" could be deduped from "1.3.808" to "electron-to-chromium@1.3.808"
warning "@babel/helper-compilation-targets#browserslist#node-releases@^1.1.71" could be deduped from "1.1.74" to "node-releases@1.1.74"
warning "koa-body#co-body#raw-body@^2.2.0" could be deduped from "2.4.2" to "raw-body@2.4.2"
warning "@babel/plugin-proposal-unicode-property-regex#@babel/helper-create-regexp-features-plugin#@babel/helper-annotate-as-pure@^7.14.5" could be deduped from "7.15.4" to "@babel/helper-annotate-as-pure@7.15.4"
error "espree#acorn-jsx" not installed
warning "cssnano-preset-default#postcss-colormin#browserslist@^4.16.6" could be deduped from "4.16.7" to "browserslist@4.16.7"
warning "cssnano-preset-default#postcss-merge-rules#browserslist@^4.16.6" could be deduped from "4.16.7" to "browserslist@4.16.7"
warning "postcss-colormin#browserslist#electron-to-chromium@^1.3.723" could be deduped from "1.3.808" to "electron-to-chromium@1.3.808"
warning "postcss-colormin#browserslist#node-releases@^1.1.71" could be deduped from "1.1.74" to "node-releases@1.1.74"
warning "postcss-merge-rules#browserslist#electron-to-chromium@^1.3.723" could be deduped from "1.3.808" to "electron-to-chromium@1.3.808"
warning "postcss-merge-rules#browserslist#node-releases@^1.1.71" could be deduped from "1.1.74" to "node-releases@1.1.74"
warning "babel-preset-jest#babel-plugin-jest-hoist#@types/babel__core@^7.0.0" could be deduped from "7.1.15" to "@types/babel__core@7.1.15"
info Found 36 warnings.
error Found 4 errors.
info Visit https://yarnpkg.com/en/docs/cli/check for documentation about this command.

How do you solve the problem? Thanks. Michele

nemesifier commented 9 months ago

Honestly I have no idea why this happens to you and I do not know how to help.

nemesifier commented 1 month ago

If you still have this issue, try with the latest master. If the issue persist, please provide a list of steps to replicate and we'll look into it. Thanks 🙏.