Drupal 10 Clean installation fails

Created on 25 March 2023, over 1 year ago
Updated 20 April 2023, over 1 year ago

I have folloxed rigourously the install procedure on a virgin clean D10 installation and Radix will not install.

NPM install ends with this error message
5322 verbose node v18.15.0
5323 verbose npm v9.6.2
5324 error code 2
5325 error path C:\wamp64\www_d10\public_html\themes\custom\bob_radix
5326 error command failed
5327 error command C:\WINDOWS\system32\cmd.exe /d /s /c find node_modules/ -name '*.info' -type f -delete
5328 verbose exit 2

and then the website has "The website encountered an unexpected error. Please try again later." and the log has

Twig\Error\LoaderError: Template "@radix/views/views-view.twig" is not defined in "themes/custom/bob_radix/templates/views/views-view.html.twig" at line 1. in Twig\Loader\ChainLoader->getCacheKey() (line 99 of C:\wamp64\www_d10\vendor\twig\twig\src\Loader\ChainLoader.php).

Anyone managed to install Radix on D10?

🐛 Bug report
Status

Closed: works as designed

Version

5.0

Component

Code

Created by

🇫🇷France r4arnys

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

Comments & Activities

  • Issue created by @r4arnys
  • Hello R4arnys,
    Make sure you have installed and enabled the drupal/components module correctly. The Radix theme installation procedure mentions it right at the beginning. If you are using Drupal 10, be sure to install version 3.x.x of Components. Refresh your cache and the error should no longer appear

  • 🇫🇷France r4arnys

    Thank you for swift reply. I did have Components 3.0.0-beta3 and I had cleared cache etc-but I restarted all services and cleared the cache and I seem to be back in.

    However I do get an error in the log "Warning: file_get_contents(themes/custom/bob_radix/build/js/main.script.js): Failed to open stream: No such file or directory in Drupal\Core\Asset\JsOptimizer->optimize() (line 25 of C:\wamp64\www_d10\public_html\core\lib\Drupal\Core\Asset\JsOptimizer.php) ".
    This seems to be because there is no directory 'themes/custom/bob_radix/build' which there was in my version D9. It seems to be the same as 'themes\custom\bob_radix\src'.
    I could just create a 'build' directory or ignore the warning? - or do you have to run 'npm install dev' or something to create that?

  • Status changed to Closed: works as designed over 1 year ago
  • Thanks Geoffrey for clearing this out, closing the ticket

Production build 0.71.5 2024