无法在ReactJS项目中使用Shopify Admin API
我想创建一个无需shopify.com管理订单的应用程序。
但是,一旦我用npm install @shopify/shopify-api
导入该软件包,React就会给我带来无限数量的破坏变化,其中一个显示了下面的一个。有人知道我如何解决这个问题吗?回复版本中仅显示了一组不同的错误。
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
- add a fallback 'resolve.fallback: { "path": require.resolve("path-browserify") }'
- install 'path-browserify'
If you don't want to include a polyfill, you can use an empty module like this:
resolve.fallback: { "path": false }
I want to create an application to manage orders without Shopify.com.
But as soon as I import the package with npm install @shopify/shopify-api
, React presents me with an endless number of breaking changes, with one of those shown below. Does anyone know how I can work around this? Going back in the react-script version has only presented a different set of errors.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
- add a fallback 'resolve.fallback: { "path": require.resolve("path-browserify") }'
- install 'path-browserify'
If you don't want to include a polyfill, you can use an empty module like this:
resolve.fallback: { "path": false }
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论