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

UNSAFE_componentWillReceiveProps error in strict mode #466

Open
johannbuscail opened this issue Feb 20, 2022 · 1 comment
Open

UNSAFE_componentWillReceiveProps error in strict mode #466

johannbuscail opened this issue Feb 20, 2022 · 1 comment

Comments

@johannbuscail
Copy link

Version

4.24.2

Description

I tried adding react-jinke-music-player to my website made in React JS.
I imported everything and added the component.
When I run the project, I get a few errors and the player isn't showing:

Warning: Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code...
Warning: findDOMNode is deprecated in StrictMode....

Steps

ReactDOM.render(
	<React.StrictMode>
		<ReactJkMusicPlayer
			audioLists={[{
				name: 'Test',
				musicSrc: 'https://www.soundhelix.com/examples/mp3/SoundHelix-Song-1.mp3',
				cover: 'https://picsum.photos/200/300',
			}]}
		/>
	</React.StrictMode>,
	document.getElementById('root'),
);
@alainib
Copy link

alainib commented Dec 7, 2022

me too, any fix please ?

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