Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9252227
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T10:53:31+00:00 2026-06-18T10:53:31+00:00

I have 3 JS libraries that I use that are in their own separate

  • 0

I have 3 JS libraries that I use that are in their own separate files. They are commented with the code minified in each individual file

file 1: http://jsfiddle.net/NGMVa/

file 2: http://jsfiddle.net/AzEME/

file 3: http://jsfiddle.net/qVkhn/

Now individually they work fine in my app, don’t throw any errors. But I wanted to load less files so I combined them into one file like this: http://jsfiddle.net/Gxswy/

However, in Chrome it throws an error on the last line of the file:

Uncaught TypeError: undefined is not a function 

and it then it doesn’t work anymore. I didn’t change anything in the code before I combined them, I just copy and pasted the content of the first 3 files into the new one, and it doesn’t work anymore. Don’t understand why combining them into one file seems to break functionality

Was hoping someone would have an idea what’s going here?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T10:53:33+00:00Added an answer on June 18, 2026 at 10:53 am

    Make sure to add the semicolons at the end of each file or concatenate and then minify and minifier should take care of that.

    Try this code: https://gist.github.com/elclanrs/4728677

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In my scripts, I often use libraries (mine or others') that have their own
I have a couple of libraries that use code similar to the following one.
I have a question about making static libraries that use other static libraries. I
Let's say that I have two libraries (A and B), and each has one
I'm currently working to upgrade a set of c++ binaries that each use their
I currently have a project with 3 files. One DBheader.h header file that includes:
Say I have an application in Linux that uses shared libraries ( .so files).
I have C# application that makes use of some C libaries(which I have written
I come from the ruby and python worlds where we have many libraries that
I have created several DLL (.NET) libraries that are used in several projects. In

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.