My goal is to incorporate the ng2-pdf-viewer
module into my Angular 6 application using webpack.
I have carefully followed the guidelines for adding this module which can be found at;
The necessary entry has been added to my package.json file, as shown below;
{
"name": "myApp",
"private": true,
[...]
}
I have verified that the ng2-pdf-viewer folder exists in my node_modules directory.
Next, I made additions to my app.module.ts
file like so;
[...]
In my press.component.html
, the following code snippet was included;
[...]
However, upon running npm run webpack-production
, the following error message is displayed;
[...]
If anyone could shed some light on why this error is happening and provide a solution, it would be greatly appreciated.