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

[Masonry] The property "columnClassName" requires a string - Error shows in Chrome console #70

Closed
harikrishnanp opened this issue Jan 14, 2021 · 2 comments

Comments

@harikrishnanp
Copy link

harikrishnanp commented Jan 14, 2021

I'm using react-masonry-css module. Recently I'm getting the below error in my Chrome Console. Any common reason for this error?

[Masonry] The property "columnClassName" requires a string myJSFile:formatted:3200

When I went to the JS file line number which shows error, I got the below code.

key: "logDeprecated", value: function(t) { console.error("[Masonry]", t) }

Please advice.

@amillward
Copy link

Adding <Masonry columnClassName="".../> solved this for me. But ideally this shouldn't be required

@harikrishnanp
Copy link
Author

@amillward The same worked for me as well. After adding the above prop the error message has disappeared.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants