Search code examples
systemjsjspmaurelia

Bundling looking for text.js in dist directory


Using the gulp tasks from the yeoman generated Aurelia app I'm trying to bundle a custom application. When I run gulp bundle the following error is reported.

enter image description here

Where can I find a log to help track down this file or the reference to this file?


Solution

  • Double check your config.js

    I've seen this from time to time, and it's usually an issue of the config.js. You'll want to make sure:

    1. The github, npm, or wherever your text plugin is located is above your '*' line.
    2. The text plugin is mapped.
    3. The plugin files are located where (1) and (2) are pointing.

    So, something like this:

    config.js

      paths: {
        "github:*": "jspm_packages/github/*",
        "npm:*": "jspm_packages/npm/*",
        "*": "dist/*"
      },
      map: {
        "text": "github:systemjs/[email protected]"
      }
    

    And jspm_packages/github/systemjs/[email protected] exists.

    If all else fails, try deleting your jspm_packages folder, and typing jspm install text.