[英]How to solve conflict between sequelize and angular in lerna monorepo with typescript?
[英]How to deal with a conflict between packages that involve typescript?
我正在按照本教程在 meteor 上创建 whatsapp 克隆: https://angular-meteor.com/tutorials/whatsapp2/meteor/chats-mutations
并且就在第 8 节的底部。我运行了
$meteor reset command
然而,按照指示,当我运行
$ npm run start
在终端中,我收到以下错误:
=> Started proxy.
=> Errors prevented startup:
While building the application:
error: Could not resolve meteor.mainModule "server/main.js" in package.json
(os)
error: Could not resolve meteor.mainModule "client/main.js" in package.json
(web.browser)
error: Could not resolve meteor.mainModule "client/main.js" in package.json
(web.browser.legacy)
error: Could not resolve meteor.mainModule "client/main.js" in package.json
(web.cordova)
While determining active plugins:
error: conflict: two packages included in the app (barbatus:typescript and
typescript) are both trying to handle *.ts
error: conflict: two packages included in the app (barbatus:typescript and
typescript) are both trying to handle *.tsx
While loading plugin `compileFonts` from package `mys:fonts`:
<anonymous>: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at getConfig (packages/compileFonts/plugin.js:70:23)
at meteorInstall.node_modules.meteor.compileFonts.plugin.js
(packages/compileFonts/plugin.js:18:25)
at fileEvaluate
(packages/modules-runtime/.npm/package/node_modules/install/install.js:141:1)
at require
(packages/modules-runtime/.npm/package/node_modules/install/install.js:75:1)
at <runJavaScript-49>:17308:1
at <runJavaScript-49>:17314:3
While determining active plugins:
error: conflict: two packages included in the app (barbatus:typescript and
typescript) are both trying to handle *.ts
error: conflict: two packages included in the app (barbatus:typescript and
typescript) are both trying to handle *.tsx
While determining active plugins:
error: conflict: two packages included in the app (barbatus:typescript and
typescript) are both trying to handle *.ts
error: conflict: two packages included in the app (barbatus:typescript and
typescript) are both trying to handle *.tsx
While determining active plugins:
error: conflict: two packages included in the app (barbatus:typescript and
typescript) are both trying to handle *.ts
error: conflict: two packages included in the app (barbatus:typescript and
typescript) are both trying to handle *.tsx
=> Your application has errors. Waiting for file change.
=> Started MongoDB.
我应该怎么做才能解决这个问题?
如果有帮助,我正在 Visual Studio Code 中做这个项目
Meteor has now official Typescript support, you can safely drop barbartus:typescript
however it's a peer dependency in a package of the tutorial's repo (it has not been updated in 3 years).
从.meteor/packages
中删除angular2-compilers
并用angular-compilers
( link ) 替换它,它应该可以工作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.