Skip to content

Latest commit

 

History

History
31 lines (25 loc) · 1.45 KB

BD-39.MD

File metadata and controls

31 lines (25 loc) · 1.45 KB

BD-39 Note

Current Caveat

  1. Webpack is still using version 2.7.0 but upgrading it would require a lot of other package change
  • update this can be quite a task
  1. pavelib/prereqs.py::node_prereqs_installation should change npm_command = 'npm install --verbose --force'.split() back to npm_command = 'npm install --verbose'.split() after resolving dependency problem occur.
  • Resolve dependency
  • Normal machine should be able to run npm ci without any errors.

Troubleshoot

If the error occur during make dev.static.lms:

  1. edxapp_env not exist or LMS_CFG
  • cd devstack then make dev.shell.lms
  • touch /edx/app/edxapp/edxapp_env && chmod +x edxapp_env
  • Alternative: add chmod +x edxapp_env to Dockerfile
  1. manpath is not define
  • cd devstack then make dev.shell.lms
  • apt update && apt install man
  • Alternative: update Dockerfile to include man package or update the script to use bash instead of sh
  1. /edx/app/edxapp/edx-platform/node_modules/.bin/webpack permission denied
  • cd devstack then make dev.shell.lms
  • chmod +x /edx/app/edxapp/edx-platform/node_modules/.bin/webpack
  • Alternative: None
  1. rtlcss not found or permission denied
  • cd devstack then make dev.shell.lms
  • npm i -g rtlcss
  • Alternative: Look into paver script and try to use rtlcss from /edx/app/edxapp/edx-platform/node_modules/.bin/rtlcss or npx rtlcss or inlcude rtlcss package in Dockerfile