NG2 Examples not working with 404 error

Created on 4 January 2017, over 7 years ago
Updated 12 July 2023, 12 months ago

Hello!

I installed PDB module, then ran "npm install" and "tsc" in pdb_ng2 folder (no errors for both commands in console, modules installed, TS files "compiled").

After that I enabled PDB and NG2 modules in Drupal.

I tried to add "Example 1" and "Heroes" blocks to the Content region (no errors at this stage)

Although I now see the header for the examnple I add, no actual content is rendered.

the tag for ng class exists:

<ng2-hero id="instance-id-a147fb70-b5eb-4585-938e-bbadea2b7078"></ng2-hero>

There's an error in Chrome console:

zone.js?v=2.4.0:1382 GET http://drupal1dev.com:9999/ru/modules/pdb/modules/pdb_ng2/components/ng2_hero/index.ts 404 (Not Found)

The path to the index.ts file is

C:\Apache24\htdocs\drupal\modules\pdb\modules\pdb_ng2\components\ng2_hero

This beghavior is the same for all the NG2 examples, different regions and at least for Chrome (55.0.2883.87 m (64-bit)) and Microsoft Edge (38.14393.0.0)

OS Win 10 Home

Drupal version 8.2.4

Thank you!

πŸ› Bug report
Status

Closed: outdated

Component

PDB NG2

Created by

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024