Open sayjeyhi opened 4 years ago
That means that const lookup = await stylesLookup;
resolves to undefined. And it does. And it's easy to fix it.
However this is intended way to use it:
await stylesLookup;
const styledStream = createStyleStream(
stylesLookup, // use the same variable
Plus please scan styles only once, and better outside of the render function, so they would be ready a bit earlier.
Plus the scan
operation is more or less expensive(they all got parsed with PostCSS and analysed), and it's better not to run it frequently.
I did same steps as explained in example but got this error :
my code looks like :