-
Notifications
You must be signed in to change notification settings - Fork 33
chore: Relates to #309. Update to Electron v4.0.1 #352
Conversation
So far I'm getting the following error when using Node.js 11.6.0 or 10.11.0 and electron 4.0.1 Error:
It appears to be due to this issue, which is awaiting a PR to be merged dilanx/craco#61 Attempts to fix:Updated to 4.11.0 instead of 4.9.0 in fether-react package.json
Still get error: error dump
error /Users/scon/code/src/paritytech/fether/node_modules/@parity/electron: Command failed. Exit code: 1 Command: yarn build Arguments: Directory: /Users/scon/code/src/paritytech/fether/node_modules/@parity/electron Output: yarn run v1.12.3 |
I tried updating to the following in fether-react package.json, in light of this comment #336 (comment)
But it crashes with the following error, so to make it work I have to run error dump
error /Users/scon/code/src/paritytech/fether/node_modules/@parity/electron: Command failed. Exit code: 1 Command: yarn build Arguments: Directory: /Users/scon/code/src/paritytech/fether/node_modules/@parity/electron Output: yarn run v1.12.3 error An unexpected error occurred: "Failed to replace env in config: ${NPM_TOKEN}". info If you think this is a bug, please open a bug report with the information provided in "/Users/scon/code/src/paritytech/fether/node_modules/@parity/electron/yarn-error.log". |
@ltfschoen Could you put code/console dumps into collapsible windows? To improve readability. Like this: examplea lot of lines Alternatively, only paste the relevant lines. |
Sure, I found this useful for multi-line code snippets:
|
9e40f92
to
0b36ca9
Compare
b19e345
to
ca7ec83
Compare
See dilanx/craco#61. Updating to craco 3.3.1 resolves error when trying to install dependencies and build: ``` Error: Cannot find module '~/code/src/paritytech/fether/node_modules/react-scripts/config/webpack.config.dev' ```
…pported for Electron 4.0.0
I've pushed commits (i.e. updating craco to 3.3.1) and it works now thanks to this issue having been resolved dilanx/craco#61 (comment). |
I just ran
Same thing with webpack.config.dev with yarn start. I think there's a version incompatibility between craco and react-scripts |
@amaurymartiny Could you please try running it again with I'm not sure what changed, but I just tried running it with both these combinations and it compiled successfully:
|
@ltfschoen Can you run a |
How embarrassing. Yes there are still issues that I'll have to figure out I deleted yarn.lock and emptied node_modules (i.e. I then ran
I then ran
|
@ltfschoen Can you try and remove this line and run the commands again? I think we don't need this plugin, it's inside stage-0 already. |
I think we should try updating to Babel 7.2.3 instead of 7.0.0-beta.49, where we don't use the stage-x presets anymore. What do you think? See https://babeljs.io/blog/2018/07/27/removing-babels-stage-presets. See the migrating section https://babeljs.io/blog/2018/07/27/removing-babels-stage-presets#migrating |
Yes, you're correct. So either:
Both works for me, I'll let you choose |
…el 7.2.3 Fixes errors: ``` { Error: Cannot find module '@babel/plugin-proposal-class-properties' from '/Users/scon/code/src/paritytech/fether/packages/fether-ui' ``` ``` Failed to minify the bundle. Error: static/js/main.f19a0eac.chunk.js from Terser TypeError: Cannot read property 'minify' of undefined ```
@amaurymartiny I think it's ready to go now. Before each check I ran Then I tested on Node.js v11.7.0 and Yarn 1.10.1 with |
In the Babel 7 migration guide these are the different plugings and to add them: See https://babeljs.io/blog/2018/07/27/removing-babels-stage-presets#migrating ``` // Stage 0 "@babel/plugin-proposal-function-bind", // Stage 1 "@babel/plugin-proposal-export-default-from", "@babel/plugin-proposal-logical-assignment-operators", ["@babel/plugin-proposal-optional-chaining", { "loose": false }], ["@babel/plugin-proposal-pipeline-operator", { "proposal": "minimal" }], ["@babel/plugin-proposal-nullish-coalescing-operator", { "loose": false }], "@babel/plugin-proposal-do-expressions", // Stage 2 ["@babel/plugin-proposal-decorators", { "legacy": true }], "@babel/plugin-proposal-function-sent", "@babel/plugin-proposal-export-namespace-from", "@babel/plugin-proposal-numeric-separator", "@babel/plugin-proposal-throw-expressions", // Stage 3 "@babel/plugin-syntax-dynamic-import", "@babel/plugin-syntax-import-meta", ["@babel/plugin-proposal-class-properties", { "loose": false }], "@babel/plugin-proposal-json-strings" ```
Thanks! Let's see if the binary passes on CI |
No description provided.