【问题标题】:Deprecated packages Tailwindcss when using create-nuxt-app使用 create-nuxt-app 时已弃用的软件包 Tailwindcss
【发布时间】:2018-12-13 00:08:58
【问题描述】:

我尝试使用 Tailwindcss 创建应用程序,但出现以下错误:

我正在使用https://github.com/nuxt-community/create-nuxt-app 来生成应用程序。

[1/4] ????  Resolving packages...
warning nuxt > postcss-cssnext@3.1.0: 'postcss-cssnext' has been deprecated in favor of 'postcss-preset-env'. Read more at https://moox.io/blog/deprecating-cssnext/
warning nuxt > webpack-bundle-analyzer > bfj-node4@5.3.1: Switch to the `bfj` package for fixes and new features!

我已尝试更换软件包,但我得到了

✗ yarn remove postcss-cssnext
yarn remove v1.3.2
[1/2] Removing module postcss-cssnext...
error This module isn't specified in a manifest.
info Visit https://yarnpkg.com/en/docs/cli/remove for documentation about this command.

我可以安装新包但不能删除它们。

此问题可在Nuxt 社区 (#c48) 上找到

【问题讨论】:

    标签: nuxt.js tailwind-css


    【解决方案1】:

    首先,这些deprecated 包是 Tailwind 的 postcss 工具链的依赖项。 如果不删除该包本身,则无法删除包依赖项。这是一个功能,而不是错误,应该是这样。否则,东西会以难以想象的方式破裂。

    其次,更新自己的依赖项是您选择使用的包的开发人员(在本例中为 Tailwind 的 Adam Wathan)担心的问题。这不是你应该做的事情,开发人员将更新他们的依赖关系,并发布一个新版本,当他们确认一切仍然有效时。这又是为了阻止破损。

    第三,没有理由恐慌,因为这些消息显然只是声明了“警告”。保持原样,一切都会正常工作。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-04-14
      • 1970-01-01
      • 2021-06-13
      • 1970-01-01
      • 2019-07-10
      • 2022-01-06
      • 2020-09-12
      • 2021-12-02
      相关资源
      最近更新 更多