generates the folder .next but always shows that error. 'next dev' - works without errors 
generates the folder .next but always shows that error.

'next dev' - works without errors