cancel
Showing results for 
Search instead for 
Did you mean: 

Magento generates invalid JS files, js files are loaded randomly

Magento generates invalid JS files, js files are loaded randomly

Hi, I have encountered a weird problem. 

After some time of development Magento started to throw errors and they are really weird.

 

2018-06-09_09-32-19.png

I cannot even modify some settings in the admin panel. 
I have tried to remove vendor directory and install everything again, but still the same issues. 

It says that missing ) after it is true, but in source files everything is closed properly. 

 

Therefore it seems that Magento is going crazy while generating static files js files.

 

Could you suggest how to solve this problem, because I cannot continue to develop my project.

 

Thank you

1 REPLY 1

Re: Magento generates invalid JS files, js files are loaded randomly

Even if I open JS files by link it has all tags closed and it seems that something wrong is done by require that loads JS files. 

Please help to solve the problem