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

Watcher cannot resolve 'memize' #13859

Closed
emfluenceindia opened this issue Feb 13, 2019 · 1 comment
Closed

Watcher cannot resolve 'memize' #13859

emfluenceindia opened this issue Feb 13, 2019 · 1 comment
Labels
[Type] Help Request Help with setup, implementation, or "How do I?" questions.

Comments

@emfluenceindia
Copy link

I am trying to build a custom block which is supposed to place it in the editor with 2 columns by default and then from Inspector control I can increase it up to 6 columns.

I am following https://github.com/WordPress/gutenberg/blob/master/packages/block-library/src/columns/index.js

The watcher is unable to resolved, i.e. memize
The error message is Module not found: Can't resolve 'memize' ...

import classnames from 'classnames';
import memoize from 'memize';

I went through #6707 but did not understand much of it.

I am a beginner to Gutenberg development. So don't know what I am doing wrong. I did skip some part of the code from the above URL as looked like I don't nee them in my custom block.

I have uploaded my code at https://gist.github.com/emfluenceindia/71846f7c76b19f8a974a0c3e0a30d4df

How can I fix this? :(

@youknowriad
Copy link
Contributor

Hi there!

If you're building your JS files, make sure to install memize as an npm dependency (add to package.json + npm install)

--
Also, As mentioned in our help request template, this repository is for tracking bugs and features to be worked on and is not meant for help requests.

For general help requests, please post in the support forum at https://wordpress.org/support/forum/how-to-and-troubleshooting/.

Technical help requests have their own section of the support forum at https://wordpress.org/support/forum/wp-advanced/.

You may also ask for technical support at https://wordpress.stackexchange.com/.

Please make sure you have checked the Handbook at https://wordpress.org/gutenberg/handbook before asking your question.

Thank you for your understanding.

@youknowriad youknowriad added the [Type] Help Request Help with setup, implementation, or "How do I?" questions. label Feb 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Help Request Help with setup, implementation, or "How do I?" questions.
Projects
None yet
Development

No branches or pull requests

2 participants