Skip to content
Discussion options

You must be logged in to vote

@rpimentaf faced the same issue. After some debugging found out that export should be according to CJS spec. like

function loader() {
  ...
}

module.exports = loader;

After this change it works fine.

Also, it would be good to log error for the end user in the library. Found that there is no error thrown or logged from this statement in the catch block.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@rpimentaf
Comment options

Comment options

You must be logged in to vote
1 reply
@n1ru4l
Comment options

n1ru4l Aug 2, 2022
Collaborator

Answer selected by n1ru4l
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants