php - Yii2 framework loaded js file return errors

Solution:
Most probably you use VirtualBox to run Yii2 application.
If yes - disablesendfile
in your Apache or Nginx config. Check out this issue on GitHub
Answer
Solution:
From the above discussion i can guess that there might be a problem with your yii2 generated asset files, ive tried duplicating your error but without success,
I had also got such an error before when i copy pasted a previous app to start developing another app from that, The way i solved it was to delete the generated assets files as yii2 will recreate the files when you run the application again
If you are using the advanced template
The assets to delete are located at the root directory that is the directory structure looks like
_protected
assets //delete the contents in here but dont delete the folder assets
backend
themes
uploads
....etc
I hope this helps
Share solution ↓
Additional Information:
Link To Answer People are also looking for solutions of the problem: your lock file does not contain a compatible set of packages. please run composer update.
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.