Extra attributes from the server: style #12129
Replies: 4 comments 5 replies
-
After looking through your post and online for references I want to say the issue is likely in your implementation of wow.js. Reasoning: wow.js is not SSR compatible and could definitely cause issues if your server is trying to implement them rather than client. Checkout this article I found that might help you figure out what went wrong. If you still can't figure it out, post your wow.js implementation and other relevant code and we can work it out. |
Beta Was this translation helpful? Give feedback.
-
Hi @LassiterJ , Yes you are right. I have implemented wow js and have tried the above solution before pushing the question here. What I did for now is downgraded my NextJs version to 9.0.1 and issue seem to be solved. I do agree that this might not be the ideal way to downgrade the version where I will not be able to use getStaticProps. But I had figured that the issue is with WOW JS. Thanks for pointing that out. Can I get the list of the JS libraries which are enabled with SSR? (I know this ask is too much) This will sort my life henceforth. I would like to say that since this is my second application in NextJS, really appreciate the work done by the founders and everyone who contributed. Though as per your suggestion, will try this once more, and keep you posted. But the only catch here, is there are several components which need to be addressed, hence that was the reason I downgraded the NExt JS version Thank you so much! |
Beta Was this translation helpful? Give feedback.
-
Hi @LassiterJ , I have tried the solution on wowjs for the version of next js 9.3.5, but it anyways doesn't work. Throws similar error So, the only option remained for me was to downgrade the next js version 9.0.1. |
Beta Was this translation helpful? Give feedback.
-
Hi @LassiterJ , thanks for all your research on the topic! Following are the step which made wow js worked on the client as well as server side!
First observation -
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Bug report
Describe the bug
While running npm run dev, there is this error on the console, but while I do npm run build and npm run start. Now sometimes I do receive the errors in the console and sometimes I dont
Below is the explanation:
Currently, I am rendering this component dynamically.
Example here -
main.js
index.js
xyzComponent.js
There are other multiple components which are added in the main.js file.
I have added wow.js in my BaseLayout Head Tag and animate.css in my _app.js file.
What I am trying to do is convert my HTML CSS and JS to Next JS APP.
Can someone please look into this? Is this normal behaviour?
Complete error here
index.js:1 Warning: Extra attributes from the server: style
in h2 (created by xyzComponent)
in div (created by xyzComponent)
in div (created by xyzComponent)
in div (created by xyzComponent)
in section (created by xyzComponent)
in xyzComponent (created by Main)
in main (created by Main)
in Main (created by Index)
in BaseLayout (created by Index)
in Index (created by MyApp)
in div (created by MyApp)
in MyApp
in Container (created by AppContainer)
in AppContainer
Thanks
Beta Was this translation helpful? Give feedback.
All reactions