I am facing problem with require.js on Magento 2 theme change 
Content> Blocks
The page shows endless spinner and I can never view my imported blocks for my new theme. When I do Firebug on the page. This is the error message
Error: Script error for: Magento_Ui/js/lib/key-codes htt://requirejs.org/docs/errorshtml#scripterror require.js (line 166, col 17)
Error: Script error for: Magento_AdminNotification/toolbar_entry htt://requirejs.org/docs/errorshtml#scripterror require.js (line 166, col 17)
Error: Script error for: Magento_Ui/js/core/app htt://requirejs.org/docs/errorshtml#scripterror require.js (line 166, col 17)
Error: Script error for: Magento_AdminNotification/system/notification htt://requirejs.org/docs/errorshtml#scripterror require.js (line 166, col 17)
Can someone help me resolving this require.js issue?
Many thanks in advance :)
- 
 the missing p in http in all resources is quite flashy, althouth I'm not sure what could cause thisDavid Verholen– David Verholen2016年04月14日 18:27:29 +00:00Commented Apr 14, 2016 at 18:27
1 Answer 1
First of all your link have missing p in htt::// instead of http://. so check about url issue.
If further issue is not resolve, try cmd command,
php bin/magento setup:static-content:deploy
remove var folder from root.
Also set permission for magento projects.
- 
 Hi Rakesh , the missing p is because when I try to copy paste to this forum , i got a warning message of url .that's why I remove the p. I have removed var from root but now my backend has broken style. I also have set file permission to 644 and directory to 755. Previously, I have set file permission to 660 and directory to 770, but still has the same loading spinner problem. Is there another way ?januaryrain77– januaryrain772016年04月15日 19:22:00 +00:00Commented Apr 15, 2016 at 19:22
- 
 Run php bin/Magento setup:di:compile and then php bin/Magento setup:static-content :deploy and finally cache:clean and try onceRahul Anand– Rahul Anand2019年08月14日 12:04:25 +00:00Commented Aug 14, 2019 at 12:04
- 
 @rakesh please look in to this magento.stackexchange.com/questions/298598/…Pramod– Pramod2019年12月13日 09:18:03 +00:00Commented Dec 13, 2019 at 9:18