browserify / browserify/factor-bundle
Issue with broken dep
- Lingua principale
- JavaScript
- Stelle
- 397
- Fork
- 24
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
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.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
Inizia dalla pipeline di gulpfile che usa browserify, brfs, reactify e factor-bundle, quindi esamina i file common.min.js e main.min.js generati e caricati da viewer.html. Riproduci l'errore dell'estensione di Chrome e traccia la riga di riferimento al modulo che causa il problema. Il lavoro è completato quando l'output di factor-bundle viene caricato senza l'errore di proprietà undefined e sostituisce il comportamento precedente di bundle.min.js.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- javascript, react
- Ambito
- build-system
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 25/100