No description
c67908c9a5
Currently failing because `withStyles` can't read the interface from context: ``` Unhandled Runtime Error TypeError: Cannot read property 'createLTR' of undefined webpack-internal:///./node_modules/react-with-styles/lib/withStyles.js (150:33) ``` Manually registering the interface resolves the issue: ```diff diff --git a/examples/with-react-with-styles/pages/_app.js b/examples/with-react-with-styles/pages/_app.js index 91d09a2a9..a393572b8 100644 --- a/examples/with-react-with-styles/pages/_app.js +++ b/examples/with-react-with-styles/pages/_app.js @@ -2,11 +2,16 @@ import App from 'next/app' import React from 'react' import WithStylesContext from 'react-with-styles/lib/WithStylesContext' import AphroditeInterface from 'react-with-styles-interface-aphrodite' +import ThemedStyleSheet from 'react-with-styles/lib/ThemedStyleSheet' import defaultTheme from '../defaultTheme' class MyApp extends App { + constructor(props) { + super(props); + ThemedStyleSheet.registerInterface(AphroditeInterface) + } render() { const { Component, pageProps } = this.props ``` But that's not how it is documented. I'm following up with react-with-styles to see if this is a bug. |
||
---|---|---|
.github | ||
.vscode | ||
bench | ||
docs | ||
errors | ||
examples | ||
packages | ||
test | ||
.eslintignore | ||
.eslintrc.json | ||
.gitignore | ||
.npmrc | ||
.prettierignore | ||
.prettierignore_staged | ||
.prettierrc.json | ||
azure-pipelines.yml | ||
check-pre-compiled.sh | ||
CODE_OF_CONDUCT.md | ||
contributing.md | ||
jest.config.js | ||
lerna.json | ||
license.md | ||
lint-staged.config.js | ||
package.json | ||
publish-release.sh | ||
readme.md | ||
run-tests.js | ||
test-file.txt | ||
UPGRADING.md | ||
yarn.lock |
Getting Started
Visit https://nextjs.org/learn to get started with Next.js.
Documentation
Visit https://nextjs.org/docs to view the documentation.
Contributing
Please see our contributing.md.
Authors
- Arunoda Susiripala (@arunoda) – Vercel
- Tim Neutkens (@timneutkens) – Vercel
- Naoyuki Kanezawa (@nkzawa) – Vercel
- Tony Kovanen (@tonykovanen) – Vercel
- Guillermo Rauch (@rauchg) – Vercel
- Dan Zajdband (@impronunciable) – Knight-Mozilla / Coral Project