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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T17:11:07+00:00 2026-06-12T17:11:07+00:00

In our Dojo system, we have something like the following specified in our dojoConfig:

  • 0

In our Dojo system, we have something like the following specified in our dojoConfig:

packages: [{
    name: "myWidgets",
    location: "/js/libs/widgets"
}]

So that in our require statements, all we have to do is something like:

 require(["myWidgets/myCalendarWidget"....

The problem is when I run the build, this dojoConfig is not available and I get numerous missing dependency errors because ‘myWidgets’ isn’t defined according to the build profile.

Now, I’ve tried adding a package block to the build profile also, but the end result of that is to create an actual ‘myWidgets’ package, which I don’t want.

So, is there any way to make the build see the definition of the ‘myWidgets’ alias, yet have the end result of the build output still mirror the regular file structure (i.e. /js/libs/widgets)? I tried to define these path aliases in the defaultConfig element in the build profile and that doesn’t work either.

  • 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-12T17:11:08+00:00Added an answer on June 12, 2026 at 5:11 pm

    If you are using a profile, you can specify the packages in the profile

    /util/buildscripts:./build.sh profile=../../../myProfile.js
    

    http://dojotoolkit.org/reference-guide/1.8/build/buildSystem.html#profile-basics

    You can also specify a javascript file that holds the dojoConfig

    /util/buildscripts:./build.sh --dojoConfig ../build/examples/dojoConfig.js
    

    http://dojotoolkit.org/reference-guide/1.8/build/buildSystem.html#using-a-package-configuration


    Answer to your comment. The path is relative from where dojo.js is.

    var dojoConfig = {
        parseOnLoad: true,
        isDebug: true,
        locale: 'en-us',
        paths: {
            "evf":      "../../evf"
        }
    };
    

    My directory structure looks like

    js/dojo-1.8.0
      dijit
      dojo <-- contains dojo.js
      dojox
      util
    js/evf
      myCustomWidget.js 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Our company has a share point document server where the UNC looks something like
I'm using dojo for our UI's, and would like to load certain part of
Our team (QA) is facing the following problem: We have a database that is
I'd like to have a dojo grid which connects to a server url which
We have the following code (listed below) in our JSP. We are seeing the
Our application is a Java-GWT application that uses Guice-Persist and Guice-Servlet extensively. We have
Our company produces cross-platform software and we have Bamboo instance which is building projects
Our Django project is getting huge. We have hundreds of apps and use a
I'm trying to create a rich mobile-like interface for our Falcon Guns , which
We are trying to switch the packaging for our project from dojo to google

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.