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

achilleas01 created an issue. See original summary.

Znak’s picture

I couldn't reproduce your problem.
Please type in which directory is your module

achilleas01’s picture

I 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

achilleas01’s picture

There 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.

achilleas01’s picture

Status: Active » Closed (works as designed)