1

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 :)

Siarhey Uchukhlebau
16.2k11 gold badges57 silver badges89 bronze badges
asked Apr 14, 2016 at 15:17
1
  • the missing p in http in all resources is quite flashy, althouth I'm not sure what could cause this Commented Apr 14, 2016 at 18:27

1 Answer 1

0

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.

answered Apr 15, 2016 at 5:00
3
  • 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 ? Commented 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 once Commented Aug 14, 2019 at 12:04
  • @rakesh please look in to this magento.stackexchange.com/questions/298598/… Commented Dec 13, 2019 at 9:18

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.