最新消息: 电脑我帮您提供丰富的电脑知识,编程学习,软件下载,win7系统下载。

如何处理涉及打字稿的软件包之间的冲突?

IT培训 admin 13浏览 0评论

如何处理涉及打字稿的软件包之间的冲突?

我正在按照本教程在流星上创建whatsapp克隆:

并且就在第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.meteorpileFonts.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中执行此项目

我正在按照本教程在流星上创建whatsapp克隆:,就在第8部分的底部。我运行了$。 。

回答如下:

Meteor现在具有官方的Typescript支持,您可以放心地删除barbartus:typescript,但是它是本教程的repo包中的一个对等项依赖项(它已经3年未更新了。)

如何处理涉及打字稿的软件包之间的冲突?

我正在按照本教程在流星上创建whatsapp克隆:

并且就在第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.meteorpileFonts.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中执行此项目

我正在按照本教程在流星上创建whatsapp克隆:,就在第8部分的底部。我运行了$。 。

回答如下:

Meteor现在具有官方的Typescript支持,您可以放心地删除barbartus:typescript,但是它是本教程的repo包中的一个对等项依赖项(它已经3年未更新了。)

发布评论

评论列表 (0)

  1. 暂无评论