Closed fabb closed 3 weeks ago
Duplicate of https://github.com/jshttp/cookie/issues/195. Sounds like you may have a typescript issue, the types don’t indicate a default export. Are you using the types included with the package?
🤷 i‘m on the newest stable typescript version, and i‘ve removed @types/cookie
It might be this option hiding the error: https://www.typescriptlang.org/tsconfig/#allowSyntheticDefaultImports
I’m not sure beyond this, maybe related to esModuleInterop. I can’t tell without more to debug with.
Since the update to 1.0.0, the default export is missing, but the types suggest it is available.
This will not throw a typescript error, but it will crash at runtime. Worked fine before 1.0.0.