Replies: 1 comment
-
TBH I don't know how things are working with modules. Trilium internally uses CommonJS for dependencies and this was the tested approach. Another possibility is to make sure the library exports globally to the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
<script type="module"> import * as THREE from 'three'; ///parsing errror, import and export should use in sourceType=Module const scene = new THREE.Scene(); </script>This may be simple question for some of you guys. There is this library called Threejs which allows to genererate 3d graphics. I want to create Nodes inside trilium that could render such canvas.
If i create an HTML render node I can insert basic js script but it fails if I tried to use a module.
If I use a js Child I don know how to specify it should be a module.
Any idea?
cheers
Beta Was this translation helpful? Give feedback.
All reactions