Error: Cannot find module 'ws'
オープン
まだ誰も着手していません。
- 主要言語
- JavaScript
- スター
- 13.7k
- フォーク
- 1.1k
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Hi,
I'm using npm to install sql.js. But when watchify try to bundle the app up, it will throw this error:
Error: Cannot find module 'ws' from 'C:\my_location\node_modules\sql.js\js'
And in the js file, I only have something like this:
var fs = require('fs');
var SQL = require('sql.js');
var filebuffer = fs.readFileSync('../../db/my_db.sqlite');
var _sqlConn = new SQL.Database(filebuffer);
I'm using a Windows 7 laptop
I really don't know how can i solve this, thanks
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
Start with the consuming JavaScript entry point and the node_modules/sql.js/js path named in the error; reproduce the npm/watchify bundle and inspect how the ws dependency is resolved. Done means the application bundles without the reported missing-module error.
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- javascript, node.js
- 領域
- build-system
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 25/100