Shopify 应用程序:由于浏览器 cookie 问题,该应用程序无法加载

Ben*_*wis 0 node.js shopify shopify-app

通过生成应用程序时在 Shopify 商店上npm init @shopify/app@latest运行并安装应用程序时。npm run dev出现以下错误This app can\xe2\x80\x99t load due to an issue with browser cookies. Try enabling cookies in your browser, [switching to another browser](https://community.shopify.com/c/Shopify-Apps/Some-Third-Party-Apps-may-not-be-accessible-on-Chrome-80-update/m-p/650220/thread-id/20503), or contacting the developer to get support.

\n
    \n
  • @shopify/shopify-app-remix版本:1.1.0

    \n
  • \n
  • 节点版本:18.6.1

    \n
  • \n
  • 操作系统:Windows 11

    \n
  • \n
\n

预期行为

\n

该应用程序应正确安装并显示演示页面。

\n

实际行为

\n

该应用程序提供了详细的错误

\n

重现问题的步骤

\n
    \n
  1. 跑步npm init @shopify/app@latest

    \n
  2. \n
  3. 跑步npm start dev

    \n
  4. \n
  5. 安装应用程序

    \n
  6. \n
  7. 启动应用程序

    \n
  8. \n
\n

Ben*_*wis 5

开发人员已在https://github.com/Shopify/shopify-app-template-remix/issues/332提供了修复程序

运行以下命令可以解决该问题。

npm run config:link
npm run config:push
npm run dev
Run Code Online (Sandbox Code Playgroud)