Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

AEM6.5 JavaScript error "cannot read property" on browser console

Avatar

Avatar
Validate 25
Level 4
srinivas_chann1
Level 4

Likes

19 likes

Total Posts

222 posts

Correct Reply

6 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Ignite 5
Ignite 3
View profile

Avatar
Validate 25
Level 4
srinivas_chann1
Level 4

Likes

19 likes

Total Posts

222 posts

Correct Reply

6 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Ignite 5
Ignite 3
View profile
srinivas_chann1
Level 4

16-12-2020

Hi,

 

I am getting the below  console error for MIME type ('text/html') is not a supported. Could you please provide input as how could I resolve it.

 

Capture.PNG

1>StoreMgr undefined:- script from location :- /libs/cq/personalization/widgets.min.js

 

Capture3.PNG

2>Namespace undefined:- script from location /libs/cq/analytics/widgets.min.js

Capture2.PNG

Thanks

Accepted Solutions (0)

Answers (2)

Answers (2)

Avatar

Avatar
Validate 25
MVP
Singaiah_Chintalapudi
MVP

Likes

130 likes

Total Posts

233 posts

Correct Reply

38 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Ignite 5
Ignite 3
View profile

Avatar
Validate 25
MVP
Singaiah_Chintalapudi
MVP

Likes

130 likes

Total Posts

233 posts

Correct Reply

38 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Ignite 5
Ignite 3
View profile
Singaiah_Chintalapudi
MVP

16-12-2020

Its really hard to know whats going on just from the above information. I would try below:

1. Try in incognito or different browser and see if it occurs. Sometimes, browser plugins may cause this issue

2. tail the error log and see if you can get more info.

 

Thanks,

Singaiah

Avatar

Avatar
Validate 10
MVP
kunal23
MVP

Likes

166 likes

Total Posts

565 posts

Correct Reply

172 solutions
Top badges earned
Validate 10
Validate 1
Ignite 3
Ignite 1
Give Back 50
View profile

Avatar
Validate 10
MVP
kunal23
MVP

Likes

166 likes

Total Posts

565 posts

Correct Reply

172 solutions
Top badges earned
Validate 10
Validate 1
Ignite 3
Ignite 1
Give Back 50
View profile
kunal23
MVP

16-12-2020

I think you might not have permissions to read these javascripts and hence the server might be responding with 404/403 error HTML. And that is why the browser is complaining about the mimetype as error pages have text/html mimetype. Try to access these URLs directly from the browser and see if you are getting 404 or 403 error pages. If yes then check whether the current user has permissions to these libraries or not.