jhipster 6.0.0
运行时出错:yarn run webpack:prod
node_modules/@types/glob/node_modules/@types/minimatch/index.d.ts(29,35) 中出现错误:错误 TS1005:预期为“,”。 node_modules/@types/glob/node_modules/@types/minimatch/index.d.ts(29,41):错误 TS1005:预期为“,”。 node_modules/@types/glob/node_modules/@types/minimatch/index.d.ts(42,59):错误 TS1005:预期为“,”。 node_modules/@types/glob/node_modules/@types/minimatch/index.d.ts(42,65):错误 TS1005:预期为“,”。 node_modules/@types/glob/node_modules/@types/minimatch/index.d.ts(271,50):错误 TS1005:预期为“,”。 node_modules/@types/glob/node_modules/@types/minimatch/index.d.ts(271,56):错误 TS1005:预期为“,”。
我使用的纱线版本与我的
pom.xml
中的纱线版本不同,当我启动 yarn install
时,我的 glob 版本和 glob 中的 minimatch 版本已更改,因此它不再与我的打字稿版本兼容。
简而言之,一个粗心的错误。