-
I try to weave CLR assemblies (i.e. written in CSharp for dotnet) with Theia for the backend. Error: The edge module has not been pre-compiled for node.js version v20.18.0. You must build a custom version of edge.node. Please refer to https://github.com/agracio/edge-js for building instructions.
But the pre-compiled files already exist: Is there a trick to inform the Theia build&run tools to include/load the specific files? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Hey @cbries, we compile/bundle our backend with webpack to minimize disk usage and startup time. Since this changes the way the files are layouted on disk, this check done by edge.js fails. There are two ways to go about this:
|
Beta Was this translation helpful? Give feedback.
-
@msujew Unfortunately I still have trouble.
During build I do get several error messages:
When I add an
Warnings: In the end I do get errors:
I copy the node/assembly files to the relevant directory: And so on and so on... When I create a simple webpack-Project, everything works fine and edge-js loads. Most of all github sources uses objects as well.... https://github.com/search?q=module.exports+language%3AJavaScript+&type=code I am puzzled 😒 |
Beta Was this translation helpful? Give feedback.
Hey @cbries,
we compile/bundle our backend with webpack to minimize disk usage and startup time. Since this changes the way the files are layouted on disk, this check done by edge.js fails.
There are two ways to go about this:
webpack.config.js
of your app). This is quick and dirty but should work well.webpack.config.js
) to copy the native.node
files to the expected location. It looks like edge.js expects them under<app>/lib/backend/native/win32/x64/20/<file>
.