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

Failing to load .node file after upgrading to 1.0.0 from 0.6.0 #23

Closed
geraintwhite opened this issue Jul 3, 2020 · 1 comment
Closed

Comments

@geraintwhite
Copy link

geraintwhite commented Jul 3, 2020

  • Operating System: macOS 10.15.4
  • Node Version: v12.4.0
  • NPM Version: 6.9.0
  • webpack Version: 4.43.0
  • node-loader Version: 1.0.0

Expected Behavior

After upgrading to 1.0.0 .node file would be loaded without error.

Actual Behavior

After upgrading to 1.0.0 .node file is not loaded with the following error Uncaught Error: node-loader: Error: ENOENT, renderer/1c4a1496ce4a9c4a7b5b692ccaba69d9.node not found in node_modules/electron/dist/Electron.app/Contents/Resources/electron.asar.

It works fine when I downgrade back to 0.6.0.

Code

// webpack.config.js
{
  target: 'electron-renderer',
  module: {
    rules: [
      {
        test: /\.node$/,
        use: require.resolve('node-loader')
      }
    ]
  },
  node: {
    __dirname: false
  }
}
@alexander-akait
Copy link
Member

@grit96 Please create reproducible test repo and do not ignore How Do We Reproduce?, I will reopen issue after you update the issue template

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