Alveo / alveo-transcriber

Web application to transcribe data for the Alveo project
https://alveo.github.io/alveo-transcriber/
BSD 3-Clause "New" or "Revised" License
1 stars 1 forks source link

_global is not defined #2

Closed davidlirving closed 7 years ago

davidlirving commented 7 years ago

Something to do with the Angular dependencies for PouchDB from my investigations. Application will compile but will not run in the browser, returning "ReferenceError: _global is not defined".

Removing db.service.ts from the application currently fixes the problem.

Valid since a bit before commit b71b9284eff1dcf59f30e8ae13af135d42d2e93c

Seems to be something wrong with the package dependency but it was working back since Wednesday on that same commit. Project was built on a separate device without issues from the aforementioned commit. Package dependencies are the same since then. npm update doesn't fix.


19:46:36.430 ReferenceError: _global is not defined[Learn More]  **polyfills.bundle.js:3891:17**
    makeAddListener/< http://localhost:4200/polyfills.bundle.js:3891:17
    attachBrowserEvents http://localhost:4200/vendor.bundle.js:3500:7
    Changes http://localhost:4200/vendor.bundle.js:3515:3
    ../../../../pouchdb/lib/index-browser.es.js/< http://localhost:4200/vendor.bundle.js:7797:22
    ../../../../pouchdb/lib/index-browser.es.js http://localhost:4200/vendor.bundle.js:2985:29
    __webpack_require__ http://localhost:4200/inline.bundle.js:55:12
    ../../../../../src/app/db.service.ts http://localhost:4200/main.bundle.js:747:66
    __webpack_require__ http://localhost:4200/inline.bundle.js:55:12
    ../../../../../src/app/data.service.ts http://localhost:4200/main.bundle.js:677:70
    __webpack_require__ http://localhost:4200/inline.bundle.js:55:12
    ../../../../../src/app/app.component.ts http://localhost:4200/main.bundle.js:302:72
    __webpack_require__ http://localhost:4200/inline.bundle.js:55:12
    ../../../../../src/app/app.module.ts http://localhost:4200/main.bundle.js:350:73
    __webpack_require__ http://localhost:4200/inline.bundle.js:55:12
    ../../../../../src/main.ts http://localhost:4200/main.bundle.js:1485:74
    __webpack_require__ http://localhost:4200/inline.bundle.js:55:12
    [2] http://localhost:4200/main.bundle.js:1503:18
    __webpack_require__ http://localhost:4200/inline.bundle.js:55:12
    webpackJsonpCallback http://localhost:4200/inline.bundle.js:26:23
    <anonymous> http://localhost:4200/main.bundle.js:1:1```
davidlirving commented 7 years ago

Fixed in 37014dd97da7b2560cb2358994a34b0c7652181f

Issue caused by zone.js 0.8.13. Issue: https://github.com/angular/zone.js/issues/835 For now using zone.js 0.8.12. Also using PouchDB 6.2.0 as there is a webpack import issue with 6.3.4.

Have frozen package.json to prevent this issue from re-occurring.