如何升级北极星?

发布于 2025-02-06 20:02:49 字数 159 浏览 3 评论 0原文

我已经安装了Shopify Polaris V6,检查了访问以下导入的版本,文件为v6.4。

import '@shopify/polaris/dist/styles.css';

如何更新我的Shopify应用程序使用Polaris V9?

I have Shopify Polaris v6 installed, I checked the version accessing the import below and the file is saying v6.4.

import '@shopify/polaris/dist/styles.css';

How could I update my Shopify app to use Polaris v9?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

天邊彩虹 2025-02-13 20:02:49

第一步是在下面运行此命令:

npm install @shopify/polaris@"9.16.0" --save

它将在根文件夹中更新您的package.json文件。 CSS文件夹位置在版本9中更改,因此您必须将导入更改为此新导入:

import '@shopify/polaris/build/esm/styles.css';

您可以在此处查看Polaris的持续版本和所有版本: https://www.npmjs.coms.com/package/@shopify/polaris

The first step is to run this command below:

npm install @shopify/polaris@"9.16.0" --save

It will update your package.json file in the root folder. The CSS folder location changed in the version 9, so you will have to change your import to this new import:

import '@shopify/polaris/build/esm/styles.css';

You can check the lasted version of Polaris and all versions available here: https://www.npmjs.com/package/@shopify/polaris

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文