Open sarabsandhu opened 7 years ago
Use the npm flag --save-exact
.
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
Is electron-compilers
(yes, "-rs", it's a dependency of electron-compile) installed?
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
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?
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
my package.json file is attached here
package.txt
is there any documentation around it?