Skip to content
This repository was archived by the owner on Aug 22, 2021. It is now read-only.
This repository was archived by the owner on Aug 22, 2021. It is now read-only.

Uncaught TypeError: Cannot read property 'replace' of undefined #63

@ifourvimal

Description

@ifourvimal

While integrating counter up with my project I am getting this error on console

Uncaught TypeError: Cannot read property 'replace' of undefined
    at Waypoint.a [as callback] (jquery.counterup.min.js:9)
    at Waypoint.trigger (jquery.waypoints.min.js:59)
    at Group.flushTriggers (jquery.waypoints.min.js:531)
    at jquery.waypoints.min.js:438

Here is my html

<div class="value white">
	<p class="sbold addr-font-h1" ><span class="counter"> 1000 </span></p>
	<p>NEW Records</p>
</div>

here is jquery

<script type="text/javascript">
	$(document).ready(function() {
		$('.counter').counterUp();
	});
</script>

I ahve included script like below,

<!-- Counterup  -->
<script src="assets/vendor/counterup/jquery.waypoints.min.js"></script>
<script src="assets/vendor/counterup/jquery.counterup.min.js"></script>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions