Js cannot read
-
I don’t use “Out Put plugin Js”.
So I ran the javascript under it as a js file and got the following error. How can this be addressed?
I am using jquery-3.6.0.min.js, and it is written after having it read.Error
jquery-3.6.0.min.js:2 Uncaught TypeError: Favorites.Factory is not a constructor at HTMLDocument.<anonymous> (favorite.js:1060:2) at e (jquery-3.6.0.min.js:2:30038) at t (jquery-3.6.0.min.js:2:30340)
Import Code
<script type="text/javascript" src="https://code.jquery.com/jquery-3.6.0.min.js"></script> <script type="text/javascript" src="<?php echo get_template_directory_uri(); ?>/js/favorite.js"></script>
In favorites.js, I just copied the code specified on the plugin screen.
- The topic ‘Js cannot read’ is closed to new replies.