instructure / canvas-lms

The open LMS by Instructure, Inc.
https://github.com/instructure/canvas-lms/wiki
GNU Affero General Public License v3.0
5.66k stars 2.5k forks source link

getting Error: Cannot find module './locale' in web console w/ weird behavior #1627

Open reidw7 opened 4 years ago

reidw7 commented 4 years ago

Used the production install for Canvas LMS on a Ubuntu Linux server.

I can log in, but the initial admin user has "weird" pages -- e..g. doesn't seem to have permissions to add anything, and some menu options are completely blank while others seem to be missing info.

Looking at the web browser console, I'm seeing a javascript error "Error: Cannot find module './locale' ". I am seeing this on all pages I've looked at.

Looking at log/production.log, the only reference I'm seeing is this:


[9ca6251207623290ec5b0fb82b5b26b2 d8be0aa0-f249-417d-be47-67fcadaaa16a] Rendered shared/_locale_warning.html.erb (2.5ms)


Here is a representative screen shot of what I'm seeing. canvas-lms-error

Any help would be greatly appreciated.

reidw7 commented 4 years ago

In case anyone in the future is having this problem and finds this, I was able to resolve this issue by downgrading the version of moment that was being used.