Skip to content
This repository has been archived by the owner on Jul 28, 2023. It is now read-only.

internalBinding is not defined with version 1.3.0 #140

Open
nsthorat opened this issue Dec 12, 2018 · 5 comments
Open

internalBinding is not defined with version 1.3.0 #140

nsthorat opened this issue Dec 12, 2018 · 5 comments

Comments

@nsthorat
Copy link

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?
@daiste
Copy link

daiste commented Dec 13, 2018

I have the same problem today. 1.2.0 is working fine

@tpluscode
Copy link

Hm, I just got the same problem, also with version 1.3. The only occurrence of internalBinding I found in natives package. And just have a look at the latest commit:

Compatibility fix for internalBinding

I tried updating natives to 1.1.6 but that did not help

@tpluscode
Copy link

Hm, and launcher 1.2 did not work for me...

@nsthorat
Copy link
Author

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).

@lddubeau
Copy link

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
[email protected] [...]/salve
└─┬ [email protected]
  └─┬ [email protected]
    └─┬ [email protected]
      └─┬ [email protected]
        └─┬ [email protected]
          └── [email protected]

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: [email protected] (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

+ [email protected]

The last line shows that natives was updated.

Let's check with npm ls:

$ npm ls natives
[email protected] [...]/salve
└─┬ [email protected]
  └─┬ [email protected]
    └─┬ [email protected]
      └─┬ [email protected]
        └─┬ [email protected]
          └── [email protected] 

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

iamstarkov added a commit to cssinjs/jss that referenced this issue Jan 30, 2019
upgrade karma-browserstack-launcher to at least 1.4.0,
because "internalBinding is not defined" due to old "natives" module
See more:
* karma-runner/karma-browserstack-launcher#140
* popcodeorg/popcode#1626
iamstarkov added a commit to cssinjs/jss that referenced this issue Jan 31, 2019
upgrade karma-browserstack-launcher to at least 1.4.0,
because "internalBinding is not defined" due to old "natives" module
See more:
* karma-runner/karma-browserstack-launcher#140
* popcodeorg/popcode#1626
HenriBeck pushed a commit to cssinjs/jss that referenced this issue Feb 3, 2019
* warn consumers if themed styles are misused. fix #1005

* Fix tests on node 10

upgrade karma-browserstack-launcher to at least 1.4.0,
because "internalBinding is not defined" due to old "natives" module
See more:
* karma-runner/karma-browserstack-launcher#140
* popcodeorg/popcode#1626

* add tests

* update snapshots

* add test for themed styles misuse warning not shown in prod

* Add dev expression babel plugin while testing

* Remove test and babel plugin from test setup

* Update size-snapshot
bhupinderbola pushed a commit to bhupinderbola/jss that referenced this issue Sep 17, 2019
…ssinjs#1006)

* warn consumers if themed styles are misused. fix cssinjs#1005

* Fix tests on node 10

upgrade karma-browserstack-launcher to at least 1.4.0,
because "internalBinding is not defined" due to old "natives" module
See more:
* karma-runner/karma-browserstack-launcher#140
* popcodeorg/popcode#1626

* add tests

* update snapshots

* add test for themed styles misuse warning not shown in prod

* Add dev expression babel plugin while testing

* Remove test and babel plugin from test setup

* Update size-snapshot
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants