gajus / lightship

Abstracts readiness, liveness and startup checks and graceful shutdown of Node.js services running in Kubernetes.
Other
518 stars 32 forks source link

module 'lightship' is a CommonJS module, which may not support all module.exports as named exports. #45

Closed jaspermayone closed 2 years ago

jaspermayone commented 2 years ago

When importing lightship using import createLightship from "lightship"; I get the console error

SyntaxError: Named export 'createLightship' not found. The requested module 'lightship' is a CommonJS module, which may not support all module.exports as named exports.

jaspermayone commented 2 years ago

Hey @gajus, was wondering if you saw this...

jaspermayone commented 2 years ago

This is an issue for anyone who uses the import syntax, cause it prohibits them from using it.

gajus commented 2 years ago

Added a comment in PR.