node-chakracore icon indicating copy to clipboard operation
node-chakracore copied to clipboard

Reported by Thali project - Leveldown does not work with Node-ChakraCore.

Open aruneshchandra opened this issue 8 years ago • 5 comments

The thali project is trying to make its platform run on Node-ChakraCore and have run into an issue with the package "leveldown". Here's the test code which is showing this error

npm ERR! Refusing to install leveldown as a dependency of itself

var PouchDB = require(‘pouchDB’);
  var testPouch = new PouchDB('icky', { db: require(‘leveldown’)});
  testPouch.put({
    _id: 'nada'
  }).then(function (response) {
    console.log(response);
  }).catch(function (err) {
    console.log(err);
  })

cc: @yaronyg

aruneshchandra avatar Apr 26 '16 22:04 aruneshchandra

Please provide more information. How did you install "leveldown"? It uses prebuild which doesn't work with node-chakracore.

I cloned https://github.com/level/leveldown and below works:

node-gyp.cmd rebuild

node
> var db = require('./build/release/leveldown')
undefined
> db
{ leveldown: { [Function] destroy: [Function], repair: [Function] } }
>

jianchun avatar Apr 26 '16 23:04 jianchun

@yaronyg is this still an issue?

obastemur avatar Sep 26 '16 01:09 obastemur

Not having checked it since we filed it I couldn't tell you. :( Right now we have enough issues getting SM to behave itself. :)

yaronyg avatar Sep 26 '16 16:09 yaronyg

@boingoing Can you verify that this is passing in our CITGM runs?

kfarnung avatar Jun 14 '17 21:06 kfarnung

I can verify latest leveldown fails to build against node-chakracore in our CITGM runs. Looks like we're missing some v8 API in chakrashim.

boingoing avatar Jun 14 '17 21:06 boingoing