The following warnings are displayed after enabling the Radix theme:

Warning: file_get_contents(themes/radix/node_modules/popper.js/dist/umd/popper.min.js): failed to open stream: No such file or directory in _locale_parse_js_file() (line 1130 of core\modules\locale\locale.module).
Warning: file_get_contents(themes/radix/node_modules/bootstrap/dist/js/bootstrap.min.js): failed to open stream: No such file or directory in _locale_parse_js_file() (line 1130 of core\modules\locale\locale.module).
Warning: file_get_contents(themes/radix/node_modules/popper.js/dist/umd/popper.min.js): failed to open stream: No such file or directory in Drupal\Core\Asset\JsOptimizer->optimize() (line 25 of core\lib\Drupal\Core\Asset\JsOptimizer.php).
Warning: file_get_contents(themes/radix/node_modules/bootstrap/dist/js/bootstrap.min.js): failed to open stream: No such file or directory in Drupal\Core\Asset\JsOptimizer->optimize() (line 25 of core\lib\Drupal\Core\Asset\JsOptimizer.php).

Any help would be greatly appreciated. Thanks!

CommentFileSizeAuthor
#4 at_radix.libraries.yml418 bytesrar9
#4 at_radix.info.yml1.15 KBrar9

Comments

NWOM created an issue. See original summary.

rar9’s picture

getting this also , how to fix?

shadcn’s picture

Hmm I haven't been able to reproduce this. Is this a custom subtheme? Can you copy and paste your subtheme info file and libraries file please?

rar9’s picture

StatusFileSize
new1.15 KB
new418 bytes

let me know if u require anything else

rar9’s picture

Basically I have the feeling the Subtheme is looking at the wrong location that doesnt have these files @ Radix Core as npm install was not used there .... only for subtheme.

shadcn’s picture

Assigned: Unassigned » shadcn

I'll take a look at this and get back to you.

shadcn’s picture

It looks like you're missing the following in your at_radix.info.yml file.

libraries-override:
  radix/bootstrap: false

This makes sure that you are loading bootstrap from your compiled subtheme and not from Radix itself.

Can you try the following and see if this fixes the issue?

Thank you.

doxigo’s picture

Status: Active » Closed (outdated)

No longer supported/outdated, closing - feel free to open MR.