Relative Content

Tag Archive for node.jswebpackelectronnode-modulesmupdf

How to configure webpack to work with mupdf.js in an Electron, T

I was trying to integrate document viewer tabs in an electron app. First I tried using native bindings to create a node addon but the IPC between main and renderer processes along with mutexes was outweighing the fast processing. Now I tried using the wasm version but I get this error during webpack compilation when trying to build ERROR in ./node_modules/mupdf/dist/mupdf-wasm.js 114:51-81 Module not found: Error: Can't resolve './' in 'D:vsprojectsElectronElectronPDFnode_modulesmupdfdist' resolve './' in 'D:vsprojectsElectronElectronPDFnode_modulesmupdfdist' Parsed request is a directory using description file: D:vsprojectsElectronElectronPDFnode_modulesmupdfpackage.json (relative path: ./dist) using description file: D:vsprojectsElectronElectronPDFnode_modulesmupdfpackage.json (relative path: ./dist) as directory existing directory D:vsprojectsElectronElectronPDFnode_modulesmupdfdist using description file: D:vsprojectsElectronElectronPDFnode_modulesmupdfpackage.json (relative path: ./dist) using path: D:vsprojectsElectronElectronPDFnode_modulesmupdfdistindex using description file: D:vsprojectsElectronElectronPDFnode_modulesmupdfpackage.json (relative path: ./dist/index)