DevWurm / angular-electron-seed

Seed project for an Angular - Electron Desktop app with the Angular-CLI
28 stars 21 forks source link

external "url":1 Uncaught ReferenceError: require is not defined #5

Closed devman926 closed 7 years ago

devman926 commented 7 years ago

in web browser console, I found these issue external "url":1 Uncaught ReferenceError: require is not defined at Object. (external "url":1) at webpack_require (bootstrap 173142d…:54) at Object. (client:2) at Object. (client?a4f7:163) at webpack_require (bootstrap 173142d…:54) at Object. (polyfills.bundle.js:4880) at __webpack_require__ (bootstrap 173142d…:54) at webpackJsonpCallback (bootstrap 173142d…:25) at polyfills.bundle.js:1 decorators.ts:293 Uncaught reflect-metadata shim is required when using class decorators

And in electron window, navigate view/Toggle developer tool in the console, I found this issue zone-mix.js:80Uncaught Error: Already loaded patch: timers at Function.Zone.load_patch (zone-mix.js:80) at zone-mix.js:2242 at performance (zone-mix.js:9) at Object. (zone-mix.js:12) at __webpack_require (bootstrap 173142d…:54) at Object. (polyfills.ts:1) at webpack_require (bootstrap 173142d…:54) at Object. (polyfills.bundle.js:4881) at webpack_require (bootstrap 173142d…:54) at webpackJsonpCallback (bootstrap 173142d…:25)

DevWurm commented 7 years ago

So make sure not to run your project in the browser. It's not intended for the Browser. It's a pure Electron seed. You may want to consider this

DevWurm commented 7 years ago

I will close the issue, because it's probably a misunderstanding. Reopen it, if you have any problems regarding this.