Giter Site home page Giter Site logo

node-addon-loader's People

Contributors

aurelien-iapp avatar ushu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

node-addon-loader's Issues

Publish latest version

Noticed that the latest version on NPM is 0.0.3, looks like you forgot to do an npm publish.

I specifically need the new rewritePath option

Addon node module not found in packaged windows version

I'm currently using node-addon-loader to attempt to pull in a C++ node addon into our electron application decrediton. It is currently working while using a hot-loaded dev environment and when running the windows-unpacked version. But after installing the electron-builder windows NSI and running the install .exe it no longer is able to locate the required .node

webpack config:
https://github.com/alexlyp/decrediton/blob/ayp_anotherTry/webpack.config.base.js#L35-L41

require(win32ipc):
https://github.com/alexlyp/decrediton/blob/ayp_anotherTry/app/main.development.js#L306

Any thoughts as to why it isn't working after installing verses windows-unpacked? Any help would be greatly appreciated! Cheers

Cannot read property 'nodeAddonLoader' of undefined

Hi, attempted plugin on latest webpack 4.12.0.

Config:

module: {
    rules: [
      {
        test: /\.node$/,
        use: {
          loader: "node-addon-loader",
          options: {}          
        }
      }
    ]
  }

Failing with

Module build failed (from ./node_modules/node-addon-loader/index.js):
TypeError: Cannot read property 'nodeAddonLoader' of undefined
    at Object.module.exports (node_modules/node-addon-loader/index.js:16:29)

Sounds like some breaking changes in newest webpack?

Addon is in app.asar but fails to load.

I'm posting this here as I'm not sure if this is an issue with the boilerplate I'm using or this addon or just me being bad, but hoping someone can help me figure it out.

I'm using this boilerplate: https://github.com/chentsulin/electron-react-boilerplate

I have added node-addon-loader and have tried many different configurations but currently have this rule in my webpack config:

      test: /\.node$/,
      use: {
        loader: 'node-addon-loader',
        options: {
          basePath: './',
          rewritePath: './'
        }
      }
    }```

When I run the packaged app, I get the following:

.../MyApp.app/Contents/Resources/app.asar/main.prod.js:7530: Uncaught Error: Cannot open .node: Error: dlopen(.node, 1): image not found


When I extract the app.asar file, I can see the <hex>.node file in the root of app.asar along side main.prod.js, so I'm a little confused as to why the app can't find the addon.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.