how to create inline style on component?
Answered
Balinese posted this in #help-forum
BalineseOP
dozens of articles and pages, and the only similar mention of it is with a misc. library.
i can only assume this to be a NextJS problem (or feature that removes it). It is available on a native react project. (im on Next13)
1st image is a quick snippet on my issue (this property is usually available, but i rarely use it, and never done it on a NextJS project, could be related to my linter,
2nd image is the intended result
i can only assume this to be a NextJS problem (or feature that removes it). It is available on a native react project. (im on Next13)
1st image is a quick snippet on my issue (this property is usually available, but i rarely use it, and never done it on a NextJS project, could be related to my linter,
eslint-config-next and is actually there, but im not sure. maybe i missed an update that removed it?)2nd image is the intended result
10 Replies
use
style={{}}have you tried creating a next project using
create-next-app inorder for everything to be set up properly?BalineseOP
okay i just said fuck it and tried it anyways
it actually does compile correctly
so i can only assume its a ts/linter problem
but this would be a new problem so im still a bit confused
BalineseOP
okay its one of my libs causing it
BalineseOP
i deleted the project and recloned it and it worked
Answer
BalineseOP
i dont even know what caused it, whatever its gone now