-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build fails on deasync build #16099
Comments
Hi @timhibberd. Not sure. I don't know that I follow what this ticket is about, to be honest 😄 What's the purpose of installing |
Cheers @talldan I assumed the build scripts were run against the cloned repository? What is the sequence to build the playground? I thought it would be:
|
Ok so I cleared the dev folder, didn't clone the repository and just ran npm install --save-dev --save-exact @wordpress/scripts and as I expected, it just builds the node_modules directory. So as I had thought, isn't the sequence to build the playground the following?
|
@jorgefilipecosta @swissspidy Can you help me out please. What is the build sequence for the playground. Working with a Windows computer with node installed I assumed the sequence was the following:
|
Why are you only trying to install It should be as simple as this:
|
As I said, I am running the following and it is failing:
|
Yep, I thought the same as @swissspidy. Why are the extra options to |
It would also be great to clarify if this affects just the playground build, and if so update the title and description. Cheers. |
I used npm install --save-dev --save-exact @wordpress/scripts because those were the instructions on the codex for an exact build - see https://developer.wordpress.org/block-editor/tutorials/javascript/js-build-setup/#using-npm-to-install-packages So I just tried npm install without the extra parameters...same failure. Can someone just run the sequence on a clean folder and see if they can reproduce. I'm not doing anthing elaborate...just running the 3 command sequence on an empty folder on my Windows computer in VScode. |
I'll try from scratch. Give me a minute. |
Ah, I see. That documentation and those steps in it are for when you want to get your own JavaScript build setup up and running. Those are not relevant when contributing to Gutenberg and trying to clone this repository. The documentation for contributing to Gutenberg can be found here: https://github.com/WordPress/gutenberg/blob/master/docs/contributors/getting-started.md As mentioned, please only run |
Cheers @swissspidy . Nope...doesn't work. See deasync error above. Note that I did not have this error yesterday...yesterday I got through either the npm install OR the npm install --save-dev --save-exact @wordpress/scripts and failed in a different place (see #16082) So summarising: If I run the following sequence I get a failure on deasync build as per error log above:
|
@timhibberd How about if you do the following?
|
Cheers @talldan but it's failing on npm install. Can you pick an empty folder, clone the repository and run npm install and see if you can reproduce this issue. It happens every time for me. |
Oh right! Worked fine for me, but I'm on a mac. Which version of node are you using @timhibberd? Because you're on windows, I don't think nvm will work for you. You should be on something like edited: accidentally wrote npm instead of node above. |
Cheers @talldan I'm on node v12.4.0 which is the current release. According to the Gb instructions at https://github.com/WordPress/gutenberg/blob/master/docs/contributors/getting-started.md this should be fine. Interesting that it is working for you on a Mac. I wonder if this is related to the fact that I am using Windows or using the latest node release. @swissspidy are you on a Mac or Windows and can you reproduce? |
I'm on a Mac too. Windows-specificity makes sense, as the error message seems to indicate that too. |
Cheers @swissspidy @talldan at least the world makes sense again :-) I'll try to track down the error. Any hints from the logfile which file may hold the culprit? I tried an initial trace but an error message in |
If I interpret your error message correctly, the installation of According to the But I cannot really help beyond that unfortunately. |
Cheers @swissspidy @talldan It appears that node-gyp seems to require Python 2 (https://superuser.com/questions/1421261/node-gyp-error-on-running-npm-install ). I'm installing python2 and see if the problem goes away. |
I don't have easy access to a Windows installation, but a few troubleshooting considerations:
The version you're running is the current stable Node release, but these instructions dictate that official support is for the current LTS release, which is currently 10.16.0 . I'm not sure if this makes a difference in practice, but it could be worth testing. The specific error draws my attention because Gutenberg was previously using a I do see it's defined as a dependency of I might also wonder if it's a known/unknown issue in |
Cheers @aduth. I had to install python2 and .net framework using npm install --global --production windows-build-tools to get past this error. Now I'm getting a new error gutenberg\playground\src\index.js:23:7: Cannot resolve dependency '@wordpress/components/build-style/style.css'. I will close this issue and raise a new one. |
Describe the bug
Build fails on deasync build
To reproduce
Steps to reproduce the behavior:
Expected behavior
Successful build
Screenshots
None applicable.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Not applicable
Additional context
The text was updated successfully, but these errors were encountered: