I'm trying to trace an error in the console in which I get this:
Warning: Invalid arguments supplied to oneOf, expected an array, got 2 arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).
And looking through our codebase I cannot find any reference to PropTypes.oneOf, however I did come across this under src/map.jsx which might be causing this error.
I'm trying to trace an error in the console in which I get this:
Warning: Invalid arguments supplied to oneOf, expected an array, got 2 arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).
And looking through our codebase I cannot find any reference to PropTypes.oneOf, however I did come across this under src/map.jsx which might be causing this error.
customAttribution: PropTypes.oneOf(PropTypes.string, PropTypes.array),
which might need to be refactored to
customAttribution: PropTypes.oneOf([PropTypes.string, PropTypes.array]),