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>
2
Answers
No space in .appendChild()
try to use
<Script>
tag from next then put the script inside a string like this