You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
process.env.PUBLIC_URL standart react setup root public folder.
vs code online pdf doesnt work because you use local server. Open CORS extension this url working.
I use that this way. This code working me localy but not render docx,doc,xls just opened pdf & image format. I trying publish vercel maybe it works online.
HI, I am trying to render a local file and get an error see below the code I am using and error message.
`import DocViewer from "react-doc-viewer";
//import EOC_test.pdf from "./assets/testDocs/";
function App() {
const docs = [
{
uri: "./assets/testDocs/EOC-test.pdf",
},
];
return ;
}
export default App;`
I have omitted the required as get an error saying required is not defined.
I just get a constant spinner.
If you need anymore info let me know.
The text was updated successfully, but these errors were encountered: