Open pauliusg opened 5 months ago
Same issue here! 🙃
Same here. Currently is not possible to use it with typescript or nestjs
I see something was attempted last year to fix this, but as this is still happening any idea when it might be addressed? Is this project still active?
As I understand
lightship
library is distributed ases
andcommonjs
module: However it has dependencyserialize-error
^11.0.0 which from v9 has breaking change and ispure es module
: https://github.com/sindresorhus/serialize-error/releases/tag/v9.0.0So looks like now
lightship
does not supportcommonjs
?UPDATE: In my project I get error:
I can run newest version of
lightship
only with some hacks. In my projectpackage.json
I added (then npm overrides version of lib):Additionally I had to make manual edit in installed
lightship
...\node_modules\lightship\package.json
to remove line:But this workaround is not acceptable in prod environment :)
UPDATE2: seems that my issue is duplicate of https://github.com/gajus/lightship/issues/67 But I think I have provided valuable information where the root cause is.