Closed gipo355 closed 1 year ago
This expression is not constructable.
Please provide other information which led to this error, and any specific questions you have about it:
Trying to learn on ESM typescript with type: module on a fastify project.
Am not able to figure out how to solve redis/ioredis#1809
From the issue history it appears to be hackable with import { default as redis } but it doesn't work for me
{ default as redis }
Do you have any idea on what it means and how to overcome it?
Thank you!
had to actually use import { Redis }
import { Redis }
Error Text
This expression is not constructable.
Supporting Information
Please provide other information which led to this error, and any specific questions you have about it:
Trying to learn on ESM typescript with type: module on a fastify project.
Am not able to figure out how to solve redis/ioredis#1809
From the issue history it appears to be hackable with import
{ default as redis }
but it doesn't work for meDo you have any idea on what it means and how to overcome it?
Thank you!