Skip to content

Upgrading paste-core from 6.0.0 to 10.11.0 #1843

Answered by TheSisb
tomtobac asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @tomtobac

TypeError: Cannot read property 'space40' of undefined

I can't tell where this code is in your project, but can you make sure it is being wrapped by the Theme.Provider? This error is saying that theme is undefined, so theme.space40 doesn't exist. My first hunch is that the Theme.Provider isn't wrapping this code. Is it in a portal for example?

Paste: "colorBorderLight" is a deprecated design token. It will be removed in the 2021.11.16 release of Paste

This shouldn't be breaking builds, but is worth upgrading anyways. Since introducing the dark theme, the token names ending with light and dark no longer made sense. We swapped them to weak and strong, respectively. You can …

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@tomtobac
Comment options

Answer selected by tomtobac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants