-
Notifications
You must be signed in to change notification settings - Fork 43
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
Update block icons to use Gutenberg style instead of Material #724
Conversation
* Update calypso-build package * Remove material-ui packages * Add wordpress icons package * Use a combination of custom icons and wp icons for the various blocks (inc. toolbar)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe this is a node version thing? I'm on v12.21.0. But I'm having major trouble updating my node_modules
.
- When I try to run
npm ci
I get the following error:
➜ newspack-blocks git:(update/block-icons) npm ci
npm WARN prepare removing existing node_modules/ before installation
npm ERR! Error while executing:
npm ERR! /usr/local/bin/git ls-remote -h -t ssh://git@github.com/Automattic/wp-prettier.git
npm ERR!
npm ERR! Warning: Permanently added the RSA host key for IP address '140.82.112.3' to the list of known hosts.
npm ERR! git@github.com: Permission denied (publickey).
npm ERR! fatal: Could not read from remote repository.
npm ERR!
npm ERR! Please make sure you have the correct access rights
npm ERR! and the repository exists.
npm ERR!
npm ERR! exited with error code: 128
- When manually I delete my
.cache
folder andnode_modules
and runnpm install
, I get this error:
➜ newspack-blocks git:(update/block-icons) ✗ npm i
npm ERR! code ENOLOCAL
npm ERR! Could not install from "node_modules/prettier/parse-srcset@github:ikatyang/parse-srcset#54eb9c1cb21db5c62b4d0e275d7249516df6f0ee" as it does not contain a package.json file.
npm ERR! A complete log of this run can be found in:
npm ERR! /.npm/_logs/2021-03-25T22_53_25_229Z-debug.log
Have any advice for getting past these errors?
Hmm I did get a bunch of errors at first too. Ultimately I ended up deleting the entire repo and checking out a fresh Maybe @jeffersonrabb has a better idea? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The errors I ran into were simply because I had an expired GitHub SSH key. Creating a new one fixed the problem. The new NPM packages must have additional dependencies that don't exist in older versions.
A suggestion for potential future refactoring: for the SVGs that don't come from the @wordpress/icons
library (the ones with hard-coded SVG code), should we consider moving them to the Newspack Components NPM package so they can be easily imported and reused elsewhere?
@dkoo That's a great idea. Maybe we could create a new npm package, e.g. |
@thomasguillot I like that idea! |
# [1.24.0-alpha.1](v1.23.0...v1.24.0-alpha.1) (2021-04-13) ### Features * update block icons to use Gutenberg style instead of Material ([#724](#724)) ([e8a0eae](e8a0eae))
🎉 This PR is included in version 1.24.0-alpha.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
# [1.24.0](v1.23.0...v1.24.0) (2021-04-13) ### Features * update block icons to use Gutenberg style instead of Material ([#724](#724)) ([e8a0eae](e8a0eae))
🎉 This PR is included in version 1.24.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
All Submissions:
Changes proposed in this Pull Request:
How to test the changes in this Pull Request:
Other information: