node-cld icon indicating copy to clipboard operation
node-cld copied to clipboard

Bundling with Webpack fails

Open iaxentoi opened this issue 3 years ago • 5 comments

We are packaging our project with serverless, which uses Webpack. The packaging fails for cld with the following error:

ERROR in ../../cld/index.js 2:13-43 Module not found: Error: Can't resolve './build/Release/cld' in 'node_modules/cld'

Changing the way it is imported should fix the issue. Is it something that could be implemented? Thank you!

iaxentoi avatar Nov 23 '21 08:11 iaxentoi

Are you aiming to run this in a browser?

dachev avatar Nov 23 '21 08:11 dachev

No, we are running a set of lambda functions and we package & deploy those using serverless & serverless-bundle.

iaxentoi avatar Nov 23 '21 08:11 iaxentoi

I'll consider a pull request if you have one but as it stands I don't have time to investigate and fix this.

dachev avatar Nov 28 '21 03:11 dachev

@dachev , is it possible to run this on browser(client side) somehow?

vinaygosain avatar Feb 08 '24 04:02 vinaygosain

@vinaygosain unfortunately this is not possible

dachev avatar Feb 08 '24 13:02 dachev