Javascript I';我在跑步';纱线成型';完成salesforce插件和I';我收到一些错误信息
我正在使用的Github回购作为示例是。我在看自述文件。在运行以下命令之后,我遇到了一些问题 这些命令是:Javascript I';我在跑步';纱线成型';完成salesforce插件和I';我收到一些错误信息,javascript,typescript,npm,salesforce,yarnpkg,Javascript,Typescript,Npm,Salesforce,Yarnpkg,我正在使用的Github回购作为示例是。我在看自述文件。在运行以下命令之后,我遇到了一些问题 这些命令是: yarn install sfdx plugins:link yarn build 命令以纱线构建结束后,我收到以下错误消息: PS C:\Users\aharo\desktop\Automation\plugin-template> yarn build yarn run v1.22.5 warning ..\..\..\package.json: No license
yarn install
sfdx plugins:link
yarn build
命令以纱线构建结束后,我收到以下错误消息:
PS C:\Users\aharo\desktop\Automation\plugin-template> yarn build
yarn run v1.22.5
warning ..\..\..\package.json: No license field
$ sf-build
yarn clean
warning ..\..\..\package.json: No license field
$ sf-clean
,package.json.bak.
yarn compile
warning ..\..\..\package.json: No license field
$ sf-compile
tsc -p . --pretty
../../../node_modules/@types/sizzle/index.d.ts:14:35 - error TS2304: Cannot find name 'Element'.
14 <TArrayLike extends ArrayLike<Element>>(selector: string, context: Element | Document | DocumentFragment, results: TArrayLike): TArrayLike;
~~~~~~~
../../../node_modules/@types/sizzle/index.d.ts:14:72 - error TS2304: Cannot find name 'Element'.
14 <TArrayLike extends ArrayLike<Element>>(selector: string, context: Element | Document | DocumentFragment, results: TArrayLike): TArrayLike;
~~~~~~~
../../../node_modules/@types/sizzle/index.d.ts:14:82 - error TS2304: Cannot find name 'Document'.
14 <TArrayLike extends ArrayLike<Element>>(selector: string, context: Element | Document | DocumentFragment, results: TArrayLike): TArrayLike;
~~~~~~~~
../../../node_modules/@types/sizzle/index.d.ts:14:93 - error TS2304: Cannot find name 'DocumentFragment'.
14 <TArrayLike extends ArrayLike<Element>>(selector: string, context: Element | Document | DocumentFragment, results: TArrayLike): TArrayLike;
~~~~~~~~~~~~~~~~
../../../node_modules/@types/sizzle/index.d.ts:15:34 - error TS2304: Cannot find name 'Element'.
15 (selector: string, context?: Element | Document | DocumentFragment): Element[];
~~~~~~~
../../../node_modules/@types/sizzle/index.d.ts:15:44 - error TS2304: Cannot find name 'Document'.
Found 17 errors.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
PS C:\Users\aharo\desktop\Automation\plugin-template>
PS C:\Users\aharo\desktop\Automation\plugin template>Thread build
纱线运行v1.22.5
警告..\\..\package.json:无许可证字段
$sf构建
纱线清洁
警告..\\..\package.json:无许可证字段
$sf清洁
,package.json.bak。
纱线整理
警告..\\..\package.json:无许可证字段
$sf编译
tsc-p--漂亮的
../../../node_modules/@types/sizzle/index.d.ts:14:35-错误TS2304:找不到名称“Element”。
14(选择器:字符串,上下文:元素|文档|文档片段,结果:TArrayLike):TArrayLike;
~~~~~~~
../../../node_modules/@types/sizzle/index.d.ts:14:72-错误TS2304:找不到名称“Element”。
14(选择器:字符串,上下文:元素|文档|文档片段,结果:TArrayLike):TArrayLike;
~~~~~~~
../../../node_modules/@types/sizzle/index.d.ts:14:82-错误TS2304:找不到名称“Document”。
14(选择器:字符串,上下文:元素|文档|文档片段,结果:TArrayLike):TArrayLike;
~~~~~~~~
../../../node_modules/@types/sizzle/index.d.ts:14:93-错误TS2304:找不到名称“DocumentFragment”。
14(选择器:字符串,上下文:元素|文档|文档片段,结果:TArrayLike):TArrayLike;
~~~~~~~~~~~~~~~~
../../../node_modules/@types/sizzle/index.d.ts:15:34-错误TS2304:找不到名称“Element”。
15(选择器:字符串,上下文?:元素|文档|文档片段):元素[];
~~~~~~~
../../../node_modules/@types/sizzle/index.d.ts:15:44-错误TS2304:找不到名称“Document”。
发现17个错误。
错误命令失败,退出代码为1。
信息访问https://yarnpkg.com/en/docs/cli/run 有关此命令的文档。
错误命令失败,退出代码为1。
信息访问https://yarnpkg.com/en/docs/cli/run 有关此命令的文档。
PS C:\Users\aharo\desktop\Automation\plugin template>
删除node_modules文件夹和warn.lock/package.lock文件,然后再次运行warn install,然后运行warn build或您正在执行的任何操作