找不到角度模块:错误:无法解析' ./ app / app.module.ngfactory'

时间:2018-05-22 12:20:59

标签: angular build

我尝试构建我的角度5应用程序,但在运行" ng build -prod"我收到了这个错误:

List<string> listRows = new List<string>();
    string rowValues = string.Empty;

    foreach(row in DataSet)
    {
        string fileName = row.name;
        listRows.Add(fileName);
    }

    rowValues = string.Join(",", listRows);

然后我运行&#34; ./ node_modules / .bin / ngc&#34;看到问题的根源,我收到了这条消息:

Module not found: Error: Can't resolve './app/app.module.ngfactory' in 'C:\workspace\my-app\src'

似乎tsconfig.json有问题,尽管自上次成功构建以来我没有改变它,我有什么理由得到这个?

Angular版本:error TS18003: No inputs were found in config file 'tsconfig.json'. Specified 'include' paths were '["**/*"]' and 'exclude' paths were '["node_modules","bower_components","jspm_packages"]'.

Angular / cli版本5.0.0

0 个答案:

没有答案