Why require is not working in html?

The reason you are getting ReferenceError: require is not defined is because nowhere in your html page is Require included . Require does not come with your standard JavaScript library. You must include the file on your page so it can be loaded and used. This can be done by simply adding <script src=”myJS.

Sizin İçin Seçtik  How do you use require in a script?

Leave a Reply

Your email address will not be published. Required fields are marked *