Error Using Client Side Files in a Nodejs Project

I'm using in my nodejs project. In order to use I should use two javascript files in client side:

The first one is

The second one is a javascript file that exists in this local url: /

As I understand, you should reference the first file before the second one. But this will result in an error when I run the server:

Uncaught TypeError: object is not a function

And it's refering to this line of the second file:

query[this.timestampParam] = +new Date + '-' + Transport.timestamps++;

I've installed What do I do?



The problem I had here, was a rather stupid one. The / file and both use a Date class. I had written a script file in my project that also had a line like this: var date = new Date() which was being mixed up with the Date class that those two were using and was casuing this.

It's highly unlikely that anyone encounteres the same problem, but similar cases might happen in any project so I decided to post this here.

Need Your Help

MySQL to MongoDB conversion

mysql ruby-on-rails ruby-on-rails-3 mongodb mongoid

How do I convert the following into MongoDB query ?

Is it possible to use cyrillic symbols in Lumen(by Laravel)?

php laravel utf-8 lumen cyrillic

The issue is I can't use any russian symbols in the response()->json() method.