![](/img/trans.png)
[英]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.