Opened 2 years ago

Last modified 2 years ago

#19094 new task

Dojo build system doesn't know what to do with the "paths" property in my config

Reported by: John Slegers Owned by:
Priority: major Milestone:
Component: BuildSystem Version:
Keywords: Cc:
Blocked By: Blocking:

Description

I have the following AMD config for my project :

    var amdconfig = {
      baseUrl: __AMD_CONFIG_BASE_URL__,
      packages: [
        {name: "loader", location: "./samples/lib/requirejs"},
        {name: "dojo", location: "./samples/lib/dojo"},
        {name: "dojox", location: "./samples/lib/dojox"},
        {name: "dijit", location: "./samples/lib/dijit"},
        {name: "luciad", location: "./luciad"},
        {name: "samples", location: "./samples"}
      ],
      cache: {},
      paths: {
        jquery: "./samples/lib/jquery/jquery-1.12.4",
        d3: "./samples/lib/d3/d3",
        bloodhound: "./samples/lib/typeahead/bloodhound",
        typeahead: "./samples/lib/typeahead/typeahead.jquery"
      }
    };

For the Dojo build system, I have the following config :

   var profile = {
      basePath: __AMD_CONFIG_BASE_URL__,
      releaseDir: "release",
      action: "release",
      stripConsole: "all",
      optimize: "closure",
      layerOptimize: "closure",
      selectorEngine: "acme",
      async: 1,
      packages: [{
        name: "loader",
        location: "./samples/lib/requirejs",
        destLocation: "./samples/lib/requirejs"
      }, {
        name: "dojo",
        location: "./samples/lib/dojo",
        destLocation: "./samples/lib/dojo"
      }, {
        name: "dijit",
        location: "./samples/lib/dijit",
        destLocation: "./samples/lib/dijit"
      }, {
        name: "dojox",
        location: "./samples/lib/dojox",
        destLocation: "./samples/lib/dojox"
      }, {
        name: "luciad",
        location: "../../main/javascript/luciad",
        destLocation: "./luciad"
      }, {
        name: "samples",
        location: "./samples",
        destLocation: "./samples"
      }],
      paths: {
        jquery: "./samples/lib/jquery/jquery-1.12.4",
        d3: "./samples/lib/d3/d3",
        bloodhound: "./samples/lib/typeahead/bloodhound",
        typeahead: "./samples/lib/typeahead/typeahead.

Change History (1)

comment:1 in reply to:  description Changed 2 years ago by John Slegers

(continued)

      },
      layers: {
        "samples/lib/requirejs": {
          include: [
            "samples/lib/requirejs"
          ],
          boot: true
        }
      }
    };

Unfortunately, the Dojo Build System doesn't seem to know what to do with the paths :

    error(311) Missing dependency. module: samples/trajectories/main; dependency: bloodhound
    error(311) Missing dependency. module: samples/trajectories/TimeChart; dependency: d3
    error(311) Missing dependency. module: samples/trajectories/TimeChart; dependency: jquery
    error(311) Missing dependency. module: samples/trajectories/TypeaheadFilter; dependency: jquery
    error(311) Missing dependency. module: samples/trajectories/TypeaheadFilter; dependency: bloodhound
    error(311) Missing dependency. module: samples/trajectories/TypeaheadFilter; dependency: typeahead

How can I fix this?

Note: See TracTickets for help on using tickets.