mlecoq / react-pdf-poc

Test React PDF Server Side rendering
1 stars 0 forks source link

Error: ENOENT: no such file or directory, open 'src/../pdf/example.pdf' #8

Closed jxavellaneda closed 3 years ago

jxavellaneda commented 3 years ago

hi mlecoq! I was doing a PoC for a project in my company, basically doing the exact same thing you did here. I found your project which was very helpful, but when running it I'm getting the mentioned error:

webpack:///./node_modules/yoga-layout-prebuilt/yoga-layout/build/Release/nbind.js?:54 throw ex; ^

[Error: ENOENT: no such file or directory, open 'src/../pdf/example.pdf'] { errno: -2, code: 'ENOENT', syscall: 'open', path: 'src/../pdf/example.pdf' }

Did you manage to make it work? not sure if might be an issue with react-pdf directly. Thanks in advance for your help.

OS: macOS v10.14.6

jxavellaneda commented 3 years ago

Solved it by manually creating the /pdf folder 😄