在 Ember 插件项目中运行虚拟应用程序找不到应用程序/样式/应用程序。



我正试图通过在插件项目中运行ember服务器来测试Ember addon项目。这将运行虚拟应用程序。然而,我并没有使用ember cli less功能(预期为/app/styles/app.less)自动构建我的less文件:

我有一些文件:

/addon-project
  /app
    /styles
      /less
      app.less
  /dist
  /assets
     dummy.js
     dummy.css
  /tests
    /dummy

然而,当我运行成员服务器时,我遇到了一个错误:

version: 0.1.15
Could not find watchman, falling back to NodeWatcher for file system events
Livereload server on port 35730
Serving on http://0.0.0.0:4201/
File not found: /app/styles/app.less
in any of the following include paths:
  /Users/me/github/ember-addons/header/tmp/tree_merger-tmp_dest_dir-qEC1hODR.tmp
Error: File not found: /app/styles/app.less

您应该尝试将"app.less"文件向上移动一级(从less文件夹中移出,使其位于"styles"文件夹中)。

最新更新