skip to Main Content

Javascript – How to get past this error in a script in body in next js?

In my _document.js I was adding a script in body and this is the error that is returning ./pages/_document.js Error: x Expected '}', got '' -[50:1] <body> <Main /> <NextScript /> <script>(function(d,z,s){s.src='https://'+d+'/401/'+z;try{(document.body||document.documentElement).append Child(s)}catch(e){}})('goomaphy.com',6701248,document.createElement('script'))</script> </body> </Html>

VIEW QUESTION
Back To Top
Search