browserify / browserify/factor-bundle
Issue with broken dep
- Lenguaje dominante
- JavaScript
- Estrellas
- 397
- Forks
- 24
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
I am using browserify with brfs in a Chrome extension. My gulpfile looks like this:
``` js
gulp.task('browserify', function() {
return browserify(paths.main)
.transform(reactify)
.transform({global: true }, 'brfs')
.plugin('factor-bundle', {outputs: ['build/main.min.js', 'build/background.min.js']})
.bundle()
.pipe(source('common.min.js'))
.pipe(gulp.dest('build/'))
})
```
In the bundle loaded into the Chrome extension, I have a `viewer.html` page, into which I have plopped:
``` html
```
In place of the previously working `bundle.min.js`. Now, however, on load, `main.min.js` no longer works, throwing a `Uncaught TypeError: Cannot read property '0' of undefined` error. The line it points to looks like this:
``` js
{"react/lib/ExecutionEnvironment":682,"react/lib/invariant":788}],280:[function(require,module,exports){
arguments[4][278][0].apply(exports,arguments)
},
```
I'm afraid I have no idea why this is happening, at all, to the point of not knowing how to even name this issue. I'm going to go back to not using factor-bundle for now. I'll have keep this issue in a branch, but I'm stumped.
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Línea de trabajo
Comienza con la canalización de gulpfile usando browserify, brfs, reactify y factor-bundle; después, inspecciona los archivos common.min.js y main.min.js generados que carga viewer.html. Reproduce el error de la extensión de Chrome y rastrea la línea de referencia al módulo que falla. El trabajo estará terminado cuando la salida de factor-bundle se cargue sin el error de propiedad undefined y sustituya el comportamiento anterior de bundle.min.js.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- javascript, react
- Área
- build-system
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Necesita aclaración
- Aptitud para principiantes
- 25/100