如何升级北极星?
我已经安装了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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
第一步是在下面运行此命令:
它将在根文件夹中更新您的
package.json
文件。 CSS文件夹位置在版本9中更改,因此您必须将导入更改为此新导入:您可以在此处查看Polaris的持续版本和所有版本: https://www.npmjs.coms.com/package/@shopify/polaris
The first step is to run this command below:
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:You can check the lasted version of Polaris and all versions available here: https://www.npmjs.com/package/@shopify/polaris