faisalman / ua-parser-js

"Unmask Your Traffic" - UAParser.js: The Essential Web Development Tool for User-Agent Detection
https://uaparser.dev/
GNU Affero General Public License v3.0
9.28k stars 1.19k forks source link

Invocation error #757

Closed MyRichard12 closed 2 weeks ago

MyRichard12 commented 3 weeks ago

Library version 2.0.0-rc.1

In TypeScript

Invocation returns error


new UAParser(req.headers['user-agent']);

// This expression is not constructable.
 // Type 'typeof UAParser' has no construct signatures.ts
faisalman commented 2 weeks ago

Hi, thanks for the report, can you provide a minimum reproducible example that we can investigate?

faisalman commented 2 weeks ago

I'm closing this for now, please reopen if you still facing the issue