It seems that if react-jss is used as described in Next.js official example, amp-custom attribute gets striped from the <style> element.
To Reproduce
I've created simple repository with two Next.js projects. Each tries to make react-jss work with AMP a bit differently with a slightly different outcomes (everything is described there).
The repo was created with create-next-app command and its only dependency is react-jss.
Hello again!
Bug report
Describe the bug
It seems that if react-jss is used as described in Next.js official example,
amp-custom
attribute gets striped from the<style>
element.To Reproduce
I've created simple repository with two Next.js projects. Each tries to make
react-jss
work with AMP a bit differently with a slightly different outcomes (everything is described there).The repo was created with
create-next-app
command and its only dependency isreact-jss
.Repo is here: https://github.com/cibulka/nextjs-amp-jss
Expected behavior
Styles (both global and local) get applied as requested and
amp-custom
attribute is not stripped from markup.System information
Additional context
I've created discussion topic, but it did not receieve much love.
Sorry for duplicating my question, but the current behaviour seems like a bug (not sure if with
react-jss
or `Next.js though).I might be missing something obvious as this is pretty much my start with AMP.
Thank you!