Wednesday, 24 May 2017

Trying to use Google Translate API (@google-cloud/translate) in React, keep getting "Module not found: Can't resolve 'child_process' "

I'm fairly new to all this, so go easy on me :P

I installed @google/translate through npm and tried to require it in one of my React components... but it keeps telling me I need child_process. I installed that too (even though other threads say it's already included in the node.js bundle), but I still get the same error. Anyone seen this problem before? Thanks!



via david

No comments:

Post a Comment