Skip to content

Complex JS Backend stuff #3436

Answered by zadam
TheOneValen asked this question in Q&A
Dec 18, 2022 · 2 comments · 16 replies
Discussion options

You must be logged in to vote

Then in the parent node I tried to include it with require. Is this how it supposed to work? I do not get an error on the require but the lib does not seem to work. Sorry if I miss some basic stuff here....

Hi, yes, it's supposed to work like that. Trilium tries to emulate Common JS modules, but I think that not all libraries will work.

It's best to try to avoid dependencies like that.

Replies: 2 comments 16 replies

Comment options

You must be logged in to vote
3 replies
@TheOneValen
Comment options

@TheOneValen
Comment options

@zadam
Comment options

Answer selected by TheOneValen
Comment options

You must be logged in to vote
13 replies
@TheOneValen
Comment options

@zadam
Comment options

@TheOneValen
Comment options

@zadam
Comment options

@TheOneValen
Comment options

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