Playground - Cannot resolve dependency @wordpress/components/build-style/style.css
Describe the bug When running playground getting the error: Cannot resolve dependency '@wordpress/components/build-style/style.css'
To reproduce 3.1) clone gutenberg (https://github.com/WordPress/gutenberg.git) 3.2) npm install 3.3) npm run playground:start
Expected behavior Running GB playground
Screenshots N/A
Desktop (please complete the following information):
- OS: Windows
- Browser N/A
- Version N/A
Smartphone (please complete the following information): N/A
Additional context GB latest master as at 8a.m. 13 June 2019 AEST
@aduth - Do you know who might know the most about the playground so I can give them a ping? Thanks in advance...much appreciated :-)
Solved: The instructions at https://developer.wordpress.org/block-editor/contributors/develop/getting-started/ don't mention that you need to build the playground before you start it. Obvious in retrospect.
So for anyone who trips over this the dev sequence for Windows for a stand-alone Gutenberg playground is:
1.1) install node (https://nodejs.org/en/download/) 1.2) install python2 and python3 if not already installed 2.1) npm install --global --production windows-build-tools 2.2) npm install -g node-gyp 3.1) git clone gutenberg (https://github.com/WordPress/gutenberg.git) 3.2) npm install 3.3) npm run playground:build 3.4) npm run playground:start
NOTE: You will need to wait after starting the playground to appear. On my PC after the "watching for changes..." got displayed it took a few minutes before the terminal was updated with "Built in XXXs" (in my case 168.66s)
Enjoy :-)