agracio / edge-js

Run .NET and Node.js code in-process on Windows, macOS, and Linux

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Webpack: Cannot find module: edge_nativeclr

harunrst opened this issue · comments

Hey there, I have been trying to run this library on my webpack build typescript-node project. But I am getting this error for a while, I checked all other issues related to this but there is no specific solution. May I have some guidance here?

image

Please take a look at webpack packaging examples here: agracio/electron-edge-js#39
You need to specify edge-js as external package similar to the code below:

  externals: {
    'edge-js': 'commonjs2 edge-js',
  },
  node: {
    __dirname: true,
    __filename: true,
  },

thanks for the rapid response! it resolved my issue :)