Skip to content

Some errors happen when installation is done with a new package.json file ( dependencies version are not the same as the current reactplay ) #1239

@Angra974

Description

@Angra974

When updating my dependencies ( eslint got problem currently in react-play when you use it with pnpm )
we got some errors :

image
Solution :
Comment this line in the file


image
Solution:
Delete current in the import


image
Solution:
delete the "event" variable in the onClick call.


image
Solution:
delete the "event" variable in the onClick call


image
Solution:
delete the "event" variable in the onClick calls


image
Solution:
Delete "plural" in the import
Delete "resp" as a parameter in then()


image
Solution:
Delete the import for playHeader
Delete the props in the function component


image
Solution:
Comment "const [error, setError] = useState('');"
Comment setError to console.log at line 45


image
Solution:
Comment "const data = structuringData[currState];"


image
Solution:
Don't import the useState at line 1


image
Solution:
Don't assign the fetch to the const "promise"
Don't assign the response result to the const "data"


image
Solution:
Comment line 3 where the import is done


image
Solution:
1- create a useState for "count" instead declaring it with let.
2 - make it works ( trick the code )


image
Solution:
Don't use "e" in the HandleCardColor as it not called inside the function


image
Solution:
Don't use event in the clickHandler function


image
Solution:
use the variable "err" as a parameter of setError


image
Solution:
Comment the line import for "data"

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions