node-chakracore
node-chakracore copied to clipboard
Reported by Thali project - Leveldown does not work with Node-ChakraCore.
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
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] } }
>
@yaronyg is this still an issue?
Not having checked it since we filed it I couldn't tell you. :( Right now we have enough issues getting SM to behave itself. :)
@boingoing Can you verify that this is passing in our CITGM runs?
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.