leota / electron-angular4-sqlite3

Sample project to show how to build a desktop app using Electron, Angular 4 and Sqlite3
62 stars 33 forks source link

App threw an error during load #17

Closed c-p-dev closed 5 years ago

c-p-dev commented 5 years ago

Hi,

I was looking for similar setup and come across your project. I hope you don't mind.

I am encountering an error running "npm run electron-win ". I not quite sure why knex throwing out error.

App threw an error during load D:\electron-sample\electron-angular4-sqlite3-master\node_modules\knex\src\migrate\Migrator.js:43 ...knex.userParams, ^^^ SyntaxError: Unexpected token ... at createScript (vm.js:53:10) at Object.runInThisContext (vm.js:95:10) at Module._compile (module.js:543:28) at Object.Module._extensions..js (module.js:580:10) at Module.load (module.js:488:32) at tryModuleLoad (module.js:447:12) at Function.Module._load (module.js:439:3) at Module.require (module.js:498:17) at require (internal/module.js:20:19) at Object. (D:\electron-sample\electron-angular4-sqlite3-master\node_modules\knex\src\util\make-knex.js:3:22) at Object. (D:\electron-sample\electron-angular4-sqlite3-master\node_modules\knex\src\util\make-knex.js:284:3) at Module._compile (module.js:571:32) at Object.Module._extensions..js (module.js:580:10) at Module.load (module.js:488:32) at tryModuleLoad (module.js:447:12) at Function.Module._load (module.js:439:3)

Thanks for the help.

leota commented 5 years ago

Can you please provide some more details about OS, Node.js version, NPM version?

c-p-dev commented 5 years ago

I am using Node.js v10.14.1 NPM 6.4.1 OS: Windows 10 Pro 64-bit

I'll try to run this project with updated versions on my other computer. Thanks!

leota commented 5 years ago

Just tested on a Windows 10 Pro 64-bit machine. Everything runs smoothly. Here's my setup:

Globally installed npm packages:

Hope it helps. Let me know!

c-p-dev commented 5 years ago

Hmm. I've tried to run it with my other computer and I have updated all my packages.

I think it comes down to my angular/cli version. my global cli version is 7.1.2. Im trying to use angular/cli version of this current project but for some reason it still fails.

I think I need to try changing my angular/cli version to 1.4 but I really dont want to downgrade my global angularcli version.

Thanks btw for the help!