HarmonyOS鸿蒙Next中npx create-react-app建立框架是否集成云存储,有没有相关gitee

HarmonyOS鸿蒙Next中npx create-react-app建立框架是否集成云存储,有没有相关gitee 在学习npx create-react-app 建立框架是否集成云存储,如何集成,都需要什么配置,是否有gitee相关官网资料,急

9 回复

cke_1067.png

更多关于HarmonyOS鸿蒙Next中npx create-react-app建立框架是否集成云存储,有没有相关gitee的实战系列教程也可以访问 https://www.itying.com/category-93-b0.html


已按相关文件配置,老是报错

OR in ./node_modules/js-crypto-env/dist/index.js 19:16-33

Module not found: Error: Can’t resolve ‘crypto’ in ‘C:\Program Files\Microsoft VS Code\workspace\NextJStudy\nextjsstudy\agc-web-react-myself\node_modules\js-crypto-env\dist’

BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default. 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: { "crypto": require.resolve("crypto-browserify") }
  • install ‘crypto-browserify’

If you don’t want to include a polyfill, you can use an empty module like this:

resolve.fallback: { "crypto": false }

尊敬的开发者您好,该问题建议您还可以选择通过在线提单来进一步解决:https://developer.huawei.com/consumer/cn/support/feedback/#/,感谢您的反馈和支持。

已按相关文件配置,老是报错
OR in ./node_modules/js-crypto-env/dist/index.js 19:16-33

Module not found: Error: Can't resolve 'crypto' in 'C:\Program Files\Microsoft VS Code\workspace\NextJStudy\nextjsstudy\agc-web-react-myself\node_modules\js-crypto-env\dist'

BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default. 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: { "crypto": require.resolve("crypto-browserify") }`
- install 'crypto-browserify'
If you don't want to include a polyfill, you can use an empty module like this: `resolve.fallback: { "crypto": false }`

已按指导进行配置,还是提示上面错误,

麻烦点进链接提个工单啊 https://developer.huawei.com/consumer/cn/support/feedback/#/ ,会有技术同事跟进的。

在HarmonyOS鸿蒙Next中使用npx create-react-app创建React应用时,默认不会集成云存储功能。你需要手动集成云存储服务,如华为云OBS、阿里云OSS等。关于相关Gitee仓库,你可以搜索“HarmonyOS React 云存储”或类似关键词,找到社区开发者分享的集成示例或模板。建议参考官方文档和社区资源,确保集成步骤正确。

回到顶部