ritz078 / embed-js

🌻 A lightweight plugin to embed emojis, media, maps, tweets, code and more. ✨
https://codesandbox.io/s/Wp5OlNMn
MIT License
1.27k stars 89 forks source link

Uncaught TypeError: Cannot set property 'LANGUAGES' of undefined #233

Closed dsozzi closed 7 years ago

dsozzi commented 7 years ago

With the latest version (4.2.1) I keep getting the the following error when initialising the class:

Uncaught TypeError: Cannot set property 'LANGUAGES' of undefined

This happens with any embed source

ritz078 commented 7 years ago

Can you create a codepen demo ?

dsozzi commented 7 years ago

Apparently is something that happens if loading the file through the browser console. I cannot replicate it loading the source normally. What I was doing to do a quick test was copying and paste the source code in console and then from the console triggering the init and render function

ritz078 commented 7 years ago

Well if its working well normally it shouldn't be a problem :) Let me know if it is.