1

我正在尝试让 scullyio 开发一个真正的基本 ng 新版本。开箱即用的骨架。步骤如下——

安装了@angular/cli。
Ran ng new scully
Ran ng build --prod
Ran npm run scully

但不断得到:

> scully@0.0.0 scully
> npx scully --

logging with severity "warning"
using plugins from folder "./scully"
Typescript error while compiling plugins. the error is:
error TS5042: Option 'project' cannot be mixed with source files on a command line.

undefined

这是我几乎所有东西的版本——我很早就用@PWA 尝试过,但这并没有带来任何运气,所以我重新开始。

NPM: 7.10.0
Angular CLI: 11.2.9
Node: 15.14.0
OS: win32 x64

Angular: 11.2.10
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router
Ivy Workspace: Yes

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1102.9
@angular-devkit/build-angular   0.1102.9
@angular-devkit/core            11.2.9
@angular-devkit/schematics      11.2.9
@angular/cli                    11.2.9
@schematics/angular             11.2.9
@schematics/update              0.1102.9
rxjs                            6.6.7
typescript                      4.1.5

提前致谢,

亲切的问候,

布雷塔

4

1 回答 1

1

如果你仍然遇到这个问题,有人在 Scully 的 Github repo 上提到了一个修复它。我有同样的问题,按照修复,它工作。

node_modules/@scullyio/scully/src/lib/utils/compileConfig.js寻找这一行:

 exec(`npx tsc -p ${configPath}`, (err, res) => { 

并将其更改为:

exec(`npx tsc -p "${configPath}"`, (err, res) => {

这里的变化${configPath}是现在像这样用双引号括起来"${configPath}"

这是 Windows 和 Ubuntu 用户遇到的问题。

于 2021-11-02T11:48:19.990 回答