I got an error when uploading files to Hubspot. The error relates to a message that is contained in the React core - the error itself is not triggered, it's just that Hubspot is picking up on the syntax that is in the text message and not in the actual app code...
[ERROR] Error validating template. [ERROR] line 8087: Error parsing 'marginRight: spacing + 'em'': syntax error at position 135, encountered ':', expected '}'
React core fragment code:
if (!(props.style == null || typeof props.style === 'object')) {
{
throw Error( "The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX." + ( ReactDebugCurrentFrame$3.getStackAddendum() ) );
}
}
The problem is that this is the core of the framework and not my code - I can't just change the framework and even if I did, the next time when React updates, the change will be overwritten.