Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Webpack: Cannot find module: edge_nativeclr #164

Closed
harunrst opened this issue Nov 16, 2022 · 2 comments
Closed

Webpack: Cannot find module: edge_nativeclr #164

harunrst opened this issue Nov 16, 2022 · 2 comments

Comments

@harunrst
Copy link
Contributor

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

@agracio
Copy link
Owner

agracio commented Nov 16, 2022

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,
  },

@harunrst
Copy link
Contributor Author

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

@agracio agracio changed the title Cannot find module: edge_nativeclr Webpack: Cannot find module: edge_nativeclr Nov 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants