parcel-bundler/parcel

Improve error message, when having nightly and standard packages in package.json at the same time

Open

#7,946 创建于 2022年4月13日

在 GitHub 查看
 (4 评论) (0 反应) (0 负责人)JavaScript (44,030 star) (2,274 fork)batch import
:raising_hand_woman: FeatureGood First Issue

描述

🐛 bug report

parcel build doesn't work

🎛 Configuration (.babelrc, package.json, cli command)

package.json:

"@parcel/config-webextension": "^2.4.2-nightly.2666",
"@parcel/reporter-bundle-analyzer": "^2.4.1",
"@parcel/transformer-typescript-tsc": "^2.4.1",
"parcel": "^2.4.1"
{
  "extends": "@parcel/config-webextension",
}

🤔 Expected Behavior

builds ok

😯 Current Behavior

errors out:

> build:dev
> NODE_ENV=development parcel build src/entry/manifest.json --log-level verbose && date +"%T"

[ThrowableDiagnostic [Error]: The plugin "@parcel/reporter-dev-server" is not compatible with the current version of Parcel. Requires "2.0.0-nightly.1041+39b330e74" but the current version is "2.4.1".] {
  diagnostics: [
    {
      message: 'The plugin "@parcel/reporter-dev-server" is not compatible with the current version of Parcel. Requires "2.0.0-nightly.1041+39b330e74" but the current version is "2.4.1".',
      origin: '@parcel/core',
      codeFrames: [Array]
    }
  ]
}

💁 Possible Solution

fix the deps in @parcel\core

🌍 Your Environment

Software Version(s)
Parcel 2.4.1
Node 17.3.0
npm/Yarn npm 8.3.0
Operating System macOS 12.3

贡献者指南