question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Following readme example leads to propType warning

See original GitHub issue

Do you want to request a feature or report a bug? I want to report a bug.

If reporting a bug, what version of react-spinners are you currently using? I am using react-spinners version 0.5.0

What is the current behavior? Following the example in the read me causes a warning: Warning: Failed prop type: Invalid prop cssof typeobjectsupplied toLoader, expected string.

If the current behavior is a bug, please provide the steps to reproduce Follow the code example in the read me.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:7
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
wamujlbcommented, Jan 30, 2019

@davidhu2000 The problem is in this line:

css: PropTypes.string, it should be PropTypes.object. Because as css().

I can create a PR for it. But you didn’t leave any guide about how to contribute to your project 😃

1reaction
hel-hadicommented, Feb 8, 2019

Nice. i’m waiting this PR 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

prop-types/README.md at main - GitHub
Here is an example of using PropTypes with a React component, ... This will warn as follows: // Warning: Failed prop type: Invalid...
Read more >
Don't Call PropTypes Warning - React
Don't call PropTypes directly ... Using PropTypes in any other way than annotating React components with them is no longer supported: var apiShape...
Read more >
propTypes should be a func console warning when passing in ...
I have the following component,
Read more >
Documentation for Grommet - Medium
After a bit of comparison, Grommet ended up utilizing one of the most ideal ... Warning: Failed prop type: Button: prop type `a11yTitle`...
Read more >
react-alert - npm
npm install --save react-alert react-alert-template-basic. Peer dependencies. This package expect the following peer dependencies:
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found