Course Activities Error: No App Root

Created on 14 May 2025, 17 days ago

Problem/Motivation

The group/{group}/inner-modules page is not working. It loads blank with the following errors in the console (no drupal log messages):

Error: The selector "app-root" did not match any elements
at t.selectRootElement (main.bundle.js?v=10.4.6:1:215933)
at t.selectRootElement (main.bundle.js?v=10.4.6:1:1094828)
at Ei (main.bundle.js?v=10.4.6:1:349396)
at $o (main.bundle.js?v=10.4.6:1:374838)
at Zo (main.bundle.js?v=10.4.6:1:374082)
at Object.ps [as createRootView] (main.bundle.js?v=10.4.6:1:384873)
at e.create (main.bundle.js?v=10.4.6:1:353409)
at e.create (main.bundle.js?v=10.4.6:1:309181)
at t.bootstrap (main.bundle.js?v=10.4.6:1:320440)
at main.bundle.js?v=10.4.6:1:317963

Steps to reproduce

  • Install Opigno LMS.
  • Create a new course.
  • Go to the activities option on the edit screen of the course.

Proposed resolution

Found that the problem is in the twig file (opigno_learning_path_modules.html.twig) that is being loaded. There is no "app-root" that is being loaded in the twig template because it has been commented out which means that the Angular trying to bootstrap to app-root won't work because it did not find any matches.

Solution: Uncomment the App Root line in that twig file.

πŸ› Bug report
Status

Active

Version

3.2

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States tyler.hastain Utah

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024