Skip to content
This repository has been archived by the owner on Jun 15, 2022. It is now read-only.

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

Open
sarabsandhu opened this issue Jun 6, 2017 · 5 comments
Open

Comments

@sarabsandhu
Copy link

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
Copy link

retrixe commented Jun 6, 2017

Use the npm flag --save-exact.

@sarabsandhu
Copy link
Author

sarabsandhu commented Jun 6, 2017

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
Copy link
Member

malept commented Jun 6, 2017

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

@sarabsandhu
Copy link
Author

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
Copy link
Member

malept commented Jun 6, 2017

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?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants