Open bppdddqqqq opened 5 months ago
I have the same issue, it's not possible to import PDFProvider, PDFPages
Now we have bundled all of the library to the one file to resolve problems with Next.js usage. All I can is just add additional export
lines of those files in the index file. I think, you will be able to import then.
@cyntler can you export all components?
New version of React-Doc-Viewer only contains header files and compiled [c]js in
~/dist/
.Motivation
We have custom PDF reader which has to stick to certain UI principles and we've used
PDFContext
component located formerly in'@cyntler/react-doc-viewer/dist/esm/renderers/pdf/state'
, but this pathing had changed entirely and we are unable to figure out where we can pullPDFContext
now... or for that matter other components