lnbc1QWFyb24 / lnmessage

Talk to Lightning nodes from the Browser
MIT License
22 stars 7 forks source link

Fix: Relative Imports #4

Closed lnbc1QWFyb24 closed 2 years ago

lnbc1QWFyb24 commented 2 years ago
bumi commented 2 years ago

I think this is not doing it recursively so for example in the messages/PongMessage.js it is using buf and not buf.js.

causing:

ERROR in ./node_modules/lnmessage/dist/messages/PongMessage.js 2:0-51
Module not found: Error: Can't resolve './buf' in 'xxx/node_modules/lnmessage/dist/messages'
Did you mean 'buf.js'?
BREAKING CHANGE: The request './buf' failed to resolve only because it was resolved as fully specified
(probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '*.mjs' file, or a '*.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.