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 7911443
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T13:15:05+00:00 2026-06-03T13:15:05+00:00

I am trying to do a build using steal/buildjs of Javascript MVC, which should

  • 0

I am trying to do a build using steal/buildjs of Javascript MVC, which should wrap all js and css files into production.js and production.css, and it throws an error and just prints some function (I assume). I am doing it inside of terminal by calling

./js steal/buildjs appname/appname.html -to appBuild

And here’s what I’m getting on the terminal (this is part of the error – the actual error is too long for stackoverflow – about 500+ lines – I’m pasting the beginning and the end of the error):

Building to appBuild/
!!!!!!!!!!! ERROR !!!!!!!!!!!

-tokens    = 
             function (prefix, suffix) {
                 var c;
                 var from;
                 var i = 0;
                 var length = this.length;
                 var n;
                 var q;
                 var str;
                 var result = [];
                 var prereg = true, self = this;
                 var make = function (type, value) {
                     prereg = (type == "operator" || type === "name") && (value === "return" || ("(,=:[!&|?{};".indexOf(value.charAt(value.length - 1)) >= 0));
                     return {type:type, value:value, from:from, to:i, toString:function () {
                         return "Type: " + type + ", value: " + value + ", from: " + from + ", to: " + i;
                     }, error:function (message) {
                         throw "steal/parse/tokens.js " + message + " with " + this.value + ".\n" + self.substr(this.from - 20, 70);
                     }};
                 };


                [ MORE STUFF RIGHT HERE ]

             }

-toJSON    = 
             function (key) {
                 return String(this);
             }

-equals$   = 
             function equals_2(other) {
                 return $equals_1(this, other);
             }

-getClass$ = 
             function getClass_32() {
                 return Ljava_lang_String_2_classLit;
             }

-hashCode$ = 
             function hashCode_4() {
                 return getHashCode_0(this);
             }

-toString$ = 
             function toString_8() {
                 return this;
             }

-typeId$   = 2

It’s pretty difficult to debug without any proper error. Any ideas?

  • 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-03T13:15:06+00:00Added an answer on June 3, 2026 at 1:15 pm

    The error beginning wtih “-tokens =” is occurring due to an empty .ejs file. I have a very similiar app situation to that of shershams, so I am certain he was experiencing the same issue for the same reason. When I encountered the same error in my app, I knew there had to be a consistent problem. A developers advice about an empty file turned to be the cause. I searched for an empty file and found there to be an empty ejs. I inserted span tags and the build worked without a problem. Apparently any empty file that is stealed can cause the problem.

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

Sidebar

Related Questions

I'm trying to build a menu using a UItableView with Custom cells which have
I'm trying build a conditions array to be using in a prepared statement: Cars.find(:all,
I am trying to build a menu using CSS.This is what i have done
I'm trying to build a website using object-oriented functionality, and running into some issues.
I am trying to build a table using jQuery Datatables. Everything works on all
I have an MVC3 razor project, which I am trying to build using multiple
I'm trying build my application using REST and Spring MVC. For some entities I
I am trying to build a program using the command scons compiler = msvc.
I am trying to build a project using Boost's Asio and I am having
I'm trying to build my project using ANT. My project uses ActionbarSherlock, and Roboguice-Sherlock.

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.