We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Webpack error in pager.js

Thread ID:

Created:

Updated:

Platform:

Replies:

130369 May 9,2017 07:53 AM May 10,2017 01:45 PM JavaScript 1
loading
Tags: ejPager
Wouter
Asked On May 9, 2017 07:53 AM

This code is giving problems in webpack 2.5.1 with imports-loader 0.7.0 and typescript 2.3.2 :

_updateField: function(n)
{
var i = 1;
this.numTextbox.val()===""?this.numTextbox()=1:this.numTextbox.val().indexOf(" ")>=1&&(this.numTextbox.val()=this._textBox.val().replace(" ",""));
this.model.currentPage = t.parseFloat(this.numTextbox.val(), this.model.locale);
isNaN(this.model.currentPage) && !this.model.currentPage && (this.model.currentPage = 1);
this.model.currentPage >= 1 && this.model.currentPage > this.model.totalPages ? (this.model.currentPage = this.model.totalPages, this.numTextbox.val(this.model.currentPage)) : this.model.currentPage < 1 && this.model.currentPage <= this.model.totalPages ? (this.model.currentPage = 1, this.numTextbox.val(this.model.currentPage)) : this.model.currentPage >= 1 && this.model.currentPage <= this.model.totalPages && (value = n == "increment" ? this.model.currentPage + i : this.model.currentPage - i, value >= 1 && value <= this.model.totalPages && (this.numTextbox.val(value), this.model.currentPage = value));
this.refreshPager()
}


From  ~\node_modules\syncfusion-javascript\scripts\ej\web\ej.pager.min.js

Webpack says:
ERROR in ../~/syncfusion-javascript/scripts/ej/web/ej.pager.min.js
Module parse failed: ~\node_modules\syncfusion-javascript\scripts\ej\web\ej.pager.min.js Assigning to rvalue (247:47)
You may need an appropriate loader to handle this file type.
|             {
|                 var i = 1;
|                 this.numTextbox.val() === "" ? this.numTextbox.val() = 1 : this.numTextbox.val().indexOf(" ") >= 1 && (this.numTextbox.val() = this._textBox.val().replace(" ", ""));



Sasikala Nagarajan [Syncfusion]
Replied On May 10, 2017 01:45 PM

Hi Wouter, 
Thanks for Contacting Syncfusion support, 

We have checked with your reported issue, and able to reproduce the issue in our end. We have fixed this issue in our pager source and refreshed in npm packages(syncfusion-javascript)  with version 15.2.41. Please check with updated source and let us know if you need any further assistance, 

Regards, 
Sasikala Nagarajan 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;