简体   繁体   English

捆绑查找dist目录中的text.js

[英]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. 我正在使用yeoman生成的Aurelia应用程序中的gulp任务,我试图捆绑一个自定义应用程序。 When I run gulp bundle the following error is reported. 当我运行gulp bundle ,报告以下错误。

在此处输入图片说明

Where can I find a log to help track down this file or the reference to this file? 在哪里可以找到日志来帮助跟踪此文件或对该文件的引用?

Double check your config.js 仔细检查您的config.js

I've seen this from time to time, and it's usually an issue of the config.js . 我不时看到这种情况,通常是config.js的问题。 You'll want to make sure: 您需要确保:

  1. The github , npm , or wherever your text plugin is located is above your '*' line. githubnpm或文本插件位于的任何位置都在“ *”行上方。
  2. The text plugin is mapped. 文本插件已映射。
  3. The plugin files are located where (1) and (2) are pointing. 插件文件位于(1)和(2)指向的位置。

So, something like this: 因此,如下所示:

config.js config.js

  paths: {
    "github:*": "jspm_packages/github/*",
    "npm:*": "jspm_packages/npm/*",
    "*": "dist/*"
  },
  map: {
    "text": "github:systemjs/plugin-text@0.0.4"
  }

And jspm_packages/github/systemjs/plugin-text@0.0.4 exists. 并且jspm_packages/github/systemjs/plugin-text@0.0.4存在。

If all else fails, try deleting your jspm_packages folder, and typing jspm install text . 如果所有其他方法均失败,请尝试删除jspm_packages文件夹,然后键入jspm install text

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM