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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T16:32:56+00:00 2026-05-25T16:32:56+00:00

Trying to switch from rails server to Apache and Passenger. I got an asset-not-found

  • 0

Trying to switch from rails server to Apache and Passenger. I got an asset-not-found error in the logs, and found out I needed to do rake assets:precompile. When I do so (after cleaning), I get the below message. What are the differences between precompiling and rails server that could create such an error in the former?

$ rake assets:precompile --trace
** Invoke assets:precompile (first_time)
** Execute assets:precompile
rake aborted!
Unexpected token: operator (>) (line: 9398, col: 3, pos: 252073)

TypeError: object is not a function
    at Object.CALL_NON_FUNCTION (native)
    at new JS_Parse_Error (/tmp/execjs20110913-10691-16kuf4b.js:463:20)
    at js_error (/tmp/execjs20110913-10691-16kuf4b.js:474:15)
    at croak (/tmp/execjs20110913-10691-16kuf4b.js:926:49)
    at token_error (/tmp/execjs20110913-10691-16kuf4b.js:930:45)
    at unexpected (/tmp/execjs20110913-10691-16kuf4b.js:936:84)
    at /tmp/execjs20110913-10691-16kuf4b.js:1304:17
    at maybe_unary (/tmp/execjs20110913-10691-16kuf4b.js:1389:27)
    at expr_op (/tmp/execjs20110913-10691-16kuf4b.js:1409:45)
    at expr_ops (/tmp/execjs20110913-10691-16kuf4b.js:1416:24)
  (in /home/user/locator/app/assets/javascripts/application.js)

Tasks: TOP => assets:precompile
  • 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-05-25T16:32:56+00:00Added an answer on May 25, 2026 at 4:32 pm

    With rails server the js file will simply be served by webrick.

    With assets:precompile it is concatenated and compressed. For this to work it needs to be parsed and it has an error in it. The same error is not as bad in development mode because it simply means that JS loading is stopped at that point. If you are in asset debug mode it even affects the specific file only.

    I would look in the compiled application JS at line 9398 and look if there is a syntax error and if there is go find it in the source file.

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

Sidebar

Related Questions

I am trying to switch from apache to nginx on my server. The only
I'm trying to retrieve JSON data from a remote site with Rails/Prototype. I've found
I was trying to switch from a tab to another tab (which may not
I'm trying to switch from Komodo to Eclipse. I can't figure out how to
I am trying to switch my Rails TEST environment from SQLite3 to Postgresql. However,
I've been trying to switch from using PerlSetEnv to using custom configuration directives .
Trying to convince someone to switch from .NET 1.1 I saw people saying that
I'm trying to convince a friend of mine to switch from OCaml to F#,
I'm trying to switch from Pyramid to Django for a small project. The website
I'm currently trying to switch from Coda (a Mac IDE) to Vim. One thing

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.