Wednesday 10 May 2017

TypeError: stream is undefined

Can't add a database connection to my small react app, i tried a bunch of npm modules: sqlite, sqlite3, realm. All fall back with type error:

TypeError: stream is undefined

i do absolutely nothing, just added a require statement in my component case that error:

import db from 'sqlite';

or:

var sqlite = require('sqlite3').verbose();

The last trace string:

(function (process){
module.exports = function (blocking) {
  [process.stdout, process.stderr].forEach(function (stream) {
    if (stream._handle && stream.isTTY && typeof stream._handle.setBlocking === 'function') {
      stream._handle.setBlocking(blocking)
    }
  })
}

and real fails on building, with Error: Cannot find module 'AccessibilityInfo'



via user14511

No comments:

Post a Comment