Lodash overrides window._ underscore.js variable
-
Hello from Visual Composer Team ??
We tried to use your plugin but faced an issue.
One of your webpack chunks uses lodash node_modules library.
( "static/js/1.5e388f05.chunk.js": "/static/js/1.5e388f05.chunk.js", )
which overrides the globalwindow._
variable with lodash analog, which causes multiple issues with the native WordPress scripts likemedia-views.js
which usesunderscore.js
functionality. As our editor loads that scripts asynchronously, then that script may be loaded later (after font-awesome plugin scripts) and that causes a javascript fatal error.The plugin shouldn’t override any global WordPress library like jQuery, underscore, backbone and etc.
- The topic ‘Lodash overrides window._ underscore.js variable’ is closed to new replies.