如何升级 ember-cli-babel?
How do I upgrade ember-cli-babel?
在线 NPM 文档没有说明如何升级 ember-cli-babel
。我尝试遵循此处发布的已接受答案 ,但这没有用。
DEPRECATION: ember-cli-babel 5.x has been deprecated. Please upgrade
to at least ember-cli-babel 6.6. Version 5.2.8 located: library-ui ->
ember-clean-tmp -> ember-cli-babel
更新
我已经卸载了 Ember-clean-tmp
插件。当我 运行 Ember-cli-update
时,我收到一条消息说 Tags match, nothing to apply
。然后我 运行 Ember S
并收到以下警告:
WARNING: ember-basic-dropdown attempted to include external babel
helpers to make your build size smaller, but your root app's
ember-cli-babel version is not high enough. Please update
ember-cli-babel to v7.3.0-beta.1 or later.
WARNING: ember-power-select attempted to include external babel
helpers to make your build size smaller, but your root app's
ember-cli-babel version is not high enough. Please update
ember-cli-babel to v7.3.0-beta.1 or later.
WARNING: ember-data attempted to include external babel helpers to
make your build size smaller, but your root app's ember-cli-babel
version is not high enough. Please update ember-cli-babel to
v7.3.0-beta.1 or later.
WARNING: ember-basic-dropdown attempted to include external babel
helpers to make your build size smaller, but your root app's
ember-cli-babel version is not high enough. Please update
ember-cli-babel to v7.3.0-beta.1 or later.
WARNING: ember-text-measurer attempted to include external babel
helpers to make your build size smaller, but your root app's
ember-cli-babel version is not high enough. Please update
ember-cli-babel to v7.3.0-beta.1 or later.
WARNING: ember-power-select attempted to include external babel
helpers to make your build size smaller, but your root app's
ember-cli-babel version is not high enough. Please update
ember-cli-babel to v7.3.0-beta.1 or later.
更新 2
我可以通过卸载 ember-cli-babel
并重新安装来解决这个问题,这让我升级到了 7.5.0 版。但是,这是升级包的正确方法吗?
您遇到的问题与您的某个插件有关,具体取决于 ember-cli-babel
的旧版本。
从弃用通知来看,它是 ember-clean-tmp,看起来不是最新的。您在这里有多种选择。首先,您可以停止使用该插件(在这种情况下,它似乎并不是一个必要的插件。在我的 2.18 应用程序中,需要清除我的 tmp 对我来说从来都不是问题)。
其次,如果您想继续使用该插件,您可以完成将插件的 ember-cli
版本升级到包含足够高 ember-cli-babel
版本的版本的过程。基本上,每个 ember-cli
版本都有一个默认蓝图,说明新应用程序应包含哪些依赖项。当你升级时,你将依赖项和各种文件与 ember-cli 版本的默认值进行比较。 ember-cli-update 是一个使这个过程变得很好的插件。然后你可以指向你自己的分支或者更好的是,将你的更新合并到上游 ember-clean-tmp
打开命令提示符并输入 ember install ember-cli-babel
并按回车键。如果您已经安装,请不要担心。这将覆盖。
首先,
npm install ember-svg-jar
第二,
ember install ember-svg-jar
我所要做的就是这些命令。
在线 NPM 文档没有说明如何升级 ember-cli-babel
。我尝试遵循此处发布的已接受答案
DEPRECATION: ember-cli-babel 5.x has been deprecated. Please upgrade to at least ember-cli-babel 6.6. Version 5.2.8 located: library-ui -> ember-clean-tmp -> ember-cli-babel
更新
我已经卸载了 Ember-clean-tmp
插件。当我 运行 Ember-cli-update
时,我收到一条消息说 Tags match, nothing to apply
。然后我 运行 Ember S
并收到以下警告:
WARNING: ember-basic-dropdown attempted to include external babel helpers to make your build size smaller, but your root app's ember-cli-babel version is not high enough. Please update ember-cli-babel to v7.3.0-beta.1 or later.
WARNING: ember-power-select attempted to include external babel helpers to make your build size smaller, but your root app's ember-cli-babel version is not high enough. Please update ember-cli-babel to v7.3.0-beta.1 or later.
WARNING: ember-data attempted to include external babel helpers to make your build size smaller, but your root app's ember-cli-babel version is not high enough. Please update ember-cli-babel to v7.3.0-beta.1 or later.
WARNING: ember-basic-dropdown attempted to include external babel helpers to make your build size smaller, but your root app's ember-cli-babel version is not high enough. Please update ember-cli-babel to v7.3.0-beta.1 or later.
WARNING: ember-text-measurer attempted to include external babel helpers to make your build size smaller, but your root app's ember-cli-babel version is not high enough. Please update ember-cli-babel to v7.3.0-beta.1 or later.
WARNING: ember-power-select attempted to include external babel helpers to make your build size smaller, but your root app's ember-cli-babel version is not high enough. Please update ember-cli-babel to v7.3.0-beta.1 or later.
更新 2
我可以通过卸载 ember-cli-babel
并重新安装来解决这个问题,这让我升级到了 7.5.0 版。但是,这是升级包的正确方法吗?
您遇到的问题与您的某个插件有关,具体取决于 ember-cli-babel
的旧版本。
从弃用通知来看,它是 ember-clean-tmp,看起来不是最新的。您在这里有多种选择。首先,您可以停止使用该插件(在这种情况下,它似乎并不是一个必要的插件。在我的 2.18 应用程序中,需要清除我的 tmp 对我来说从来都不是问题)。
其次,如果您想继续使用该插件,您可以完成将插件的 ember-cli
版本升级到包含足够高 ember-cli-babel
版本的版本的过程。基本上,每个 ember-cli
版本都有一个默认蓝图,说明新应用程序应包含哪些依赖项。当你升级时,你将依赖项和各种文件与 ember-cli 版本的默认值进行比较。 ember-cli-update 是一个使这个过程变得很好的插件。然后你可以指向你自己的分支或者更好的是,将你的更新合并到上游 ember-clean-tmp
打开命令提示符并输入 ember install ember-cli-babel
并按回车键。如果您已经安装,请不要担心。这将覆盖。
首先,
npm install ember-svg-jar
第二,
ember install ember-svg-jar
我所要做的就是这些命令。