Skip to content
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

Failed to setup Gutenberg in both local wordpress or Docker - Windows 10 #23121

Closed
bilouStrike opened this issue Jun 12, 2020 · 7 comments
Closed
Labels
[Package] Env /packages/env

Comments

@bilouStrike
Copy link

I have tried to setup gutenberg for development, it works fine in macOS, but in windows 10 the two ways have failed (local wordpress enivrement and Docker ):

Here is my host configuration:

  • Windows10 Pro
  • Node version: 12.18.0
  • Docker : 2.3.0.3
    • Engine: 19.03.8
    • Compose: 1.25.5

Npm install passed fine 💯

1- local WordPress environment
command: npm run build: failed and return:

npm

2- Using Docker :
command: npx wp-env start return

docker

@paaljoachim
Copy link
Contributor

paaljoachim commented Jun 12, 2020

See if this documentation which is still being created helps.
#22831

Documentation. View on the branch here: https://github.com/WordPress/gutenberg/tree/add/docs-create-block/docs/designers-developers/developers/tutorials/create-block

See if this also helps:
https://www.youtube.com/watch?v=Vr3KPykhzhw&t=1s

@bilouStrike
Copy link
Author

bilouStrike commented Jun 12, 2020

See if this documentation which is still being created helps.
#22831

Documentation. View on the branch here: https://github.com/WordPress/gutenberg/tree/add/docs-create-block/docs/designers-developers/developers/tutorials/create-block

See if this also helps:
https://www.youtube.com/watch?v=Vr3KPykhzhw&t=1s

Thanks @paaljoachim , i've followed those documentations you mention, and this was the results that i posted above.

@paaljoachim
Copy link
Contributor

Hopefully you'll be able to get some help soon.

@gziolo gziolo added [Package] Env /packages/env Needs Testing Needs further testing to be confirmed. labels Jun 14, 2020
@noahtallen
Copy link
Member

I can try to debug the wp-env issue on my windows computer sometime this week. No promises; I'm kinda busy with other stuff at the moment!

I've often had issues running node projects in Windows. As a workaround, WSL (windows subsystem for linux) might be able to get it working for you in the short term. Obviously we want to make sure that windows development is supported, so we'll need to try to fix these things.

@noahtallen
Copy link
Member

I've tried using wp-env on Windows, and I used these instructions to install docker: https://docs.docker.com/docker-for-windows/install-windows-home/

It seems to be working ok for me, not seeing these issues. 🤔

@skorasaurus skorasaurus added the [Status] Stale Gives the original author opportunity to update before closing. Can be reopened as needed. label Feb 15, 2022
@t-hamano
Copy link
Contributor

t-hamano commented Aug 6, 2022

I have checked this issue and now believe that such errors don't occur anymore.
As seen in #37189 and #39388, I believe it is now possible to build correctly on the Windows host OS.

I don't know what was going on at the time this issue was reported, but now it should be fine with the latest version of Node 14.
However, as seen in this comment, you may need to use the latest minor version of Node for Gutenberg as well.

2- Using Docker :
command: npx wp-env start return

For this, would the following command work?

npm run wp-env start

@noahtallen
Copy link
Member

I'll close this issue now, then :)

And of course, please open another issue if anything starts failing on Windows!

@t-hamano t-hamano removed Needs Testing Needs further testing to be confirmed. [Status] Stale Gives the original author opportunity to update before closing. Can be reopened as needed. labels Aug 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Package] Env /packages/env
Projects
None yet
Development

No branches or pull requests

6 participants