0rpc / zerorpc-node

zerorpc for node.js
http://www.zerorpc.io
Other
703 stars 166 forks source link

Module parse failed #88

Open martinlombana opened 7 years ago

martinlombana commented 7 years ago

Hi,

After installing zerorpc in node, and using it in an ionic2 app with electron (either in ionic serve / npm start -with electron-) I get this error:

Module parse failed: D:\Sync\Martin\inProgress\P4Q\_bulk\zeromqtest\zeromqtest\node_modules\zeromq\build\Release\zmq.node Unexpected character '�' (1:2) You may need an appropriate loader to handle this file type. (Source code omitted for this binary file)

I tried rebuilding the sources, but nothing.

Any ideas? Thanks,

jingman commented 6 years ago

I have the same issue - were you able to resolve this?

KrustyC commented 6 years ago

Any development on this? I have the same issue

salvolm84 commented 6 years ago

Same here, electron-quasar app. I think has something to do with webpack that does not know what to do with this *.node file and it is looking for a suitable loader. I'm pretty stuck, hope someone can help on this

salvolm84 commented 6 years ago

oh yes, I think this can help https://github.com/webpack-contrib/node-loader Testing it right now

salvolm84 commented 6 years ago

Yes that was it, just install the node-loader and update your webpack config accordingly

rakakhrl commented 5 years ago

Yes that was it, just install the node-loader and update your webpack config accordingly

i have the same issue but im using babel