Error: Cannot find module 'ws'
Abierto
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- JavaScript
- Estrellas
- 13.7k
- Forks
- 1.1k
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
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
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- javascript, node.js
- Área
- build-system
- Tipo de issue
- Error
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Estancado
- Claridad
- Necesita aclaración
- Aptitud para principiantes
- 25/100