question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

internalBinding is not defined with version 1.3.0

See original GitHub issue

I’m seeing the following error in a travis build with version 1.3.0, any thoughts on what’s going on?

12 12 2018 15:41:47.243:ERROR [plugin]: Error during loading "/home/travis/build/tensorflow/tfjs-core/node_modules/karma-browserstack-launcher" plugin:
  internalBinding is not defined
12 12 2018 15:41:47.468:ERROR [reporter]: Can not load reporter "BrowserStack", it is not registered!
  Perhaps you are missing some plugin?

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:5

github_iconTop GitHub Comments

2reactions
nsthoratcommented, Dec 13, 2018

FYI this error doesn’t show up in Node 8 so we switched testing to that environment. This is a problem with Node 10 (and natives 1.1.6 didn’t fix it for me either).

0reactions
lddubeaucommented, Dec 19, 2018

I upgraded to natives 1.1.6 and the problem went away. npm makes it easy to not successfully upgrade a package, if your own package is not directly dependent on it. So I’ll detail what I did.

Prior to the upgrade, my test suite fails like the description given in this issue, and I’m running natives 1.1.4:

$ npm ls natives
salve@9.0.1 [...]/salve
└─┬ karma-browserstack-launcher@1.3.0
  └─┬ browserstacktunnel-wrapper@2.0.3
    └─┬ unzip@0.1.11
      └─┬ fstream@0.1.31
        └─┬ graceful-fs@3.0.11
          └── natives@1.1.4

As shown above, the dependency is deep in the tree of packages, so I’m using --depth=10 to get npm upgrade (aka npm up) to go into the tree. I did not count the depth precisely, I just rounded up to 10. Using a --depth argument with a large enough value is necessary, otherwise npm up won’t fix it. So:

$ npm up natives --depth=10
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

+ natives@1.1.6

The last line shows that natives was updated.

Let’s check with npm ls:

$ npm ls natives
salve@9.0.1 [...]/salve
└─┬ karma-browserstack-launcher@1.3.0
  └─┬ browserstacktunnel-wrapper@2.0.3
    └─┬ unzip@0.1.11
      └─┬ fstream@0.1.31
        └─┬ graceful-fs@3.0.11
          └── natives@1.1.6 

Yup, now it shows 1.1.6 and my test suite runs without error.

Read more comments on GitHub >

github_iconTop Results From Across the Web

gulp - internalBinding is not defined - Stack Overflow
I ran into the same issue as you. To fix it, I added the following to my package.json in the devDependencies section "natives":...
Read more >
SOA Composite Re-deployment Issue - Oracle Support
Oracle SOA Suite - Version 12.2.1.3.0 and later: SOA Composite Re-deployment ... This product might not have a product menu defined in its ......
Read more >
Gulp & Npm | ReferenceError: internalBinding is not defined
Gulp & Npm | ReferenceError: internalBinding is not defined. For developing scope, i use “npm” and “gulp” for compile scss , Js, ecc...
Read more >
Unity 2022.1.0b9
Scene/Game View: Camera resolution is set to default when opening ... Visual Scripting: 1.8.0 pre-release version is no longer available.
Read more >
Open Source Used In CBD 2.3.0 - Cisco
under the Apache License, Version 2.0 (the "License"); * you may not use this file ... and distribution as defined by Sections 1...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found