electron-userland / electron-prebuilt-compile

electron-prebuilt with Babel and React built-in
167 stars 50 forks source link

Use different version of electron-prebuilt-compile other than 1.6.11 #33

Open sarabsandhu opened 7 years ago

sarabsandhu commented 7 years ago

I am trying to use different version of electron-prebuilt-compile which has chrome version 51. So I am doing npm uninstall first version of electron-prebuilt-compile (1.6.11) and npm install second version (e.g. 1.2.6). I see below error message

Debugging with legacy protocol because a runtime executable is set. electron-forge-vscode-win.cmd --debug-brk=20173 × Locating Application Electron forge was terminated: You must depend on an EXACT version of "electron-prebuilt-compile" not a range

my package.json file is attached here

package.txt

is there any documentation around it?

retrixe commented 7 years ago

Use the npm flag --save-exact.

sarabsandhu commented 7 years ago

Thank you @ibujs . That did the trick. Now I am loading page successfully but i see below error in developers tools conosle. Do i need to change version on electron-compile as well? config-parser.js:443 Uncaught Error: Electron compilers not found but were requested to be loaded Failed to parse SourceMap: file:///C:/Users/someuser/src/Observable.js.map Failed to parse SourceMap: file:///C:/Users/someuser/src/toSubscriber.js.map Failed to parse SourceMap: file:///C:/Users/someuser/src/Subscriber.js.map Failed to parse SourceMap: file:///C:/Users/someuser/src/isFunction.js.map Failed to parse SourceMap: file:///C:/Users/someuser/src/Subscription.js.map Failed to parse SourceMap: file:///C:/Users/someuser/src/isObject.js.map Failed to parse SourceMap: file:///C:/Users/someuser/src/tryCatch.js.map Failed to parse SourceMap: file:///C:/Users/someuser/src/UnsubscriptionError.js.map Failed to parse SourceMap: file:///C:/Users/someuser/src/Observer.js.map Failed to parse SourceMap: file:///C:/Users/someuser/src/observable.js.map Failed to parse SourceMap: file:///C:/Users/someuser/src/Subject.js.map Failed to parse SourceMap: file:///C:/Users/someuser/src/ObjectUnsubscribedError.js.map Failed to parse SourceMap: file:///C:/Users/someuser/src/SubjectSubscription.js.map Failed to parse SourceMap: file:///C:/Users/someuser/src/ErrorObservable.js.map

malept commented 7 years ago

Is electron-compilers (yes, "-rs", it's a dependency of electron-compile) installed?

sarabsandhu commented 7 years ago

no it was not installed so i used below command to install it in dev dependencies npm install electron-compilers --save-dev --save-exact

config-parser.js:443 Uncaught Error: Electron compilers not found but were requested to be loaded

is resolved.

Failed to parse SourceMap: file:///C:/Users/someuser/src/Observable.js.map Failed to parse SourceMap: file:///C:/Users/someuser/src/toSubscriber.js.map Failed to parse SourceMap: file:///C:/Users/someuser/src/Subscriber.js.map Failed to parse SourceMap: file:///C:/Users/someuser/src/isFunction.js.map Failed to parse SourceMap: file:///C:/Users/someuser/src/Subscription.js.map Failed to parse SourceMap: file:///C:/Users/someuser/src/isObject.js.map Failed to parse SourceMap: file:///C:/Users/someuser/src/tryCatch.js.map Failed to parse SourceMap: file:///C:/Users/someuser/src/UnsubscriptionError.js.map Failed to parse SourceMap: file:///C:/Users/someuser/src/Observer.js.map Failed to parse SourceMap: file:///C:/Users/someuser/src/observable.js.map Failed to parse SourceMap: file:///C:/Users/someuser/src/Subject.js.map Failed to parse SourceMap: file:///C:/Users/someuser/src/ObjectUnsubscribedError.js.map Failed to parse SourceMap: file:///C:/Users/someuser/src/SubjectSubscription.js.map Failed to parse SourceMap: file:///C:/Users/someuser/src/ErrorObservable.js.map

still seeing above Failed to parse SourceMap errors

malept commented 7 years ago

For the record, you don't need to save electron-compilers to package.json, it's a direct dependency of electron-compile.

What does your .compilerc look like?