Running viewer with webpack-dev-server

Product: “@pdftron/webviewer”: “^8.0.0”,

Product Version: 8.0.0

Can not get the viewer to render with webpack-dev-server

I have an existing React project not created with create-react-app so I do not have a public folder and I do not run the app with react-scripts start. I just need an example of where to copy the public folder so I can serve the viewer with webpack-dev-server. I have tried multiple locations.

I can see this error in my logs:
TypeError: Cannot read property ‘addEventListener’ of null

This issue has been resolved, seems the viewer will not work inside a react-modal, the path issues have been resolved by just pulling the viewer outside of react-modal.

Hi Laza
Thanks for contacting us for support. Your issue seems resolved, if you have any other questions, let me know

Best Regards
Jack