Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I have installed the module pdb and then i run the npm install inside the pdb_ng2 module. Then i enabled pdb_ng2 module. I enabled the block ng2_hero and i get a 404 not found error when the page loads the globals.ts file that is inside the ng2_hero. The path to the drupal root is wrong. Is there a way to correct it? Thanks !!
Comments
Comment #2
Znak CreditAttribution: Znak commentedI couldn't reproduce your problem.
Please type in which directory is your module
Comment #3
achilleas01 CreditAttribution: achilleas01 commentedI get 404 not found
http://localhost/modules/pdb/modules/pdb_ng2/components/ng2_hero/globals.js 404 (Not Found)
error
the path that it is produced by pdb_ng2.module file in the $component->getPath() is wrong. Can you help why this produced path is wrong? Thanks again for your great module
Comment #4
achilleas01 CreditAttribution: achilleas01 commentedThere is no any error if the drupal installed in /var/www/html in web root. If it is installed in other folder for example /var/www/html/drupal then the path is wrong. So, there is no any problem with the module and the issue is closed.
Comment #5
achilleas01 CreditAttribution: achilleas01 commented