tuananh / camaro

camaro is an utility to transform XML to JSON, using Node.js binding to native XML parser pugixml, one of the fastest XML parser around.
MIT License
556 stars 29 forks source link

Dependencies not found (6.0.2) #115

Closed alsatianio closed 4 years ago

alsatianio commented 4 years ago

Not sure what's happening here, or if it's just my Node, but every time I try to run my build after installing Camaro, I get the following:

ERROR  Failed to compile with 4 errors               

These dependencies were not found:       

* async_hooks in ./node_modules/eventemitter-asyncresource/dist/src/index.js, ./node_modules/piscina/dist/src/index.js
* perf_hooks in ./node_modules/piscina/dist/src/index.js
* worker_threads in ./node_modules/piscina/dist/src/index.js    
tuananh commented 4 years ago

@alsatianio what node version you're using?

alsatianio commented 4 years ago

@tuananh 14.4.0, but I've tried 8, 10, and 12 as well.

tuananh commented 4 years ago

@alsatianio it's weird. all those libs are builtin library of node.

alsatianio commented 4 years ago

@tuananh For some reason it only happens with Camaro. No other packages are throwing the error, or have ever thrown that error.

alsatianio commented 4 years ago

@tuananh Seems like it's got something to do with Nuxt.js, investigating further.

tuananh commented 4 years ago

@alsatianio ah, camaro is currently not usable for web. it's sth to do with the breaking changes i did in v6.

you can use v4 or v5 if it's intended for the web.

alsatianio commented 4 years ago

Thanks @tuananh !