We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm trying to write an inline style element component, but Astroturf is getting in the way. This fails:
function InlineStyle({value, ...props}) { return ( <style {...props} dangerouslySetInnerHTML={{__html: value}} /> ); }
With this error:
AstroturfLoaderError: /<PATH>/InlineStyle.js: Cannot read property 'name' of undefined at Array.some (<anonymous>) at Array.filter (<anonymous>)
But this works:
function InlineStyle({value, ...props}) { const El = 'style'; // secret sauce return ( <El {...props} dangerouslySetInnerHTML={{__html: value}} /> ); }
I'm running the most recent beta using the webpack loader via NextJS 10. I think Astroturf should be able to infer the context.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I'm trying to write an inline style element component, but Astroturf is getting in the way. This fails:
With this error:
But this works:
I'm running the most recent beta using the webpack loader via NextJS 10. I think Astroturf should be able to infer the context.
The text was updated successfully, but these errors were encountered: