3rd-Eden / useragent

Useragent parser for Node.js, ported from browserscope.org
MIT License
899 stars 138 forks source link

Incompatible with webpack #129

Open pastelsky opened 6 years ago

pastelsky commented 6 years ago

When trying to build useragent with webpack, the build errors out because packages request and yamlparser are used by this library (lib/update.js), but they aren't specified as either peer dependencies or dependencies.

This means the package cannot be used on the client side at the moment.

vith commented 6 years ago

This PR looks related #117

nicollecastrog commented 4 years ago

I'm using next.js (which uses webpack) and found a work-around. I've commented here: https://github.com/3rd-Eden/useragent/pull/117#issuecomment-554770992

jdrydn commented 4 years ago

Only solution I found was to install yamlparser alongside until this is fixed, ah well 🤷‍♂️