vercel / next.js

The React Framework
https://nextjs.org
MIT License
124.41k stars 26.54k forks source link

amp-custom attribute gets stripped (if react-jss is used) #12243

Open cibulka opened 4 years ago

cibulka commented 4 years ago

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 is react-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!

Triluk98 commented 8 months ago

Hey, can I work on this issue?

ViKi10000 commented 5 months ago

can you assign me this?