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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T16:31:01+00:00 2026-06-01T16:31:01+00:00

Requirejs seems to be allowing rels.js to run before Rel is loaded. https://github.com/yedi/Avalon/blob/backbone_rewrite/avalon/static/app/modules/collections/rels.js So

  • 0

Requirejs seems to be allowing rels.js to run before Rel is loaded. https://github.com/yedi/Avalon/blob/backbone_rewrite/avalon/static/app/modules/collections/rels.js
So Rel is undefined when I debug for it inside the initialize() function. model is also not being defined because Rel isn’t defined.

I can’t seem to understand why this is happening. Other files that are requiring the same Rel model don’t seem to have this issue. (in both https://github.com/yedi/Avalon/blob/backbone_rewrite/avalon/static/app/modules/views/node.js and https://github.com/yedi/Avalon/blob/backbone_rewrite/avalon/static/app/modules/views/child.js, Rel is defined when I debug it. I require Rel the exact same way that I do inside rels.js)

I’m having this same issue with my items.js collection.

Any help/suggestions on how I can debug this problem? (I have no idea how I would even tackle it and I’ve been banging my head on this problem for a few days.)

  • 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-01T16:31:02+00:00Added an answer on June 1, 2026 at 4:31 pm

    You simply have a circular dependency.
    Your collection requires the child model and vice-versa. Kill the "modules/collections/rels" requirement in the child model, it should not need to know how it will be contained in a collection.

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

Sidebar

Related Questions

The __shared__ memory in CUDA seems to require a known size at compile time.
Seems to me for simple forms that only require the user to ensure a
There seems to have been a backlash from users when Spotify (link below) required
JavaScript libaries such as RequireJS and the like can be used to declare one
I just started out with RequireJS, but i'm stuck at the part where i
I create js app with Backbone and RequireJS for registred or non registred users.
I'm trying to configure RequireJS to load jQuery from a different folder on my
I'm building an app with backbone/RequireJs on the front end and node/express on the
I'm having issues loading a collection of Backbone Views with RequireJS - as they
I have been looking into integrating testing into my app based on RequireJS. I

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.