【问题标题】:Uncaught Error: configuration must include a projectID - ReactJS and Sanity even though I have the projectID in the file未捕获的错误:配置必须包含 projectID - ReactJS 和 Sanity,即使我在文件中有 projectID
【发布时间】:2022-09-29 13:57:12
【问题描述】:

我在 client.js 文件中有我的项目 ID,但我仍然收到此错误。这是完整的错误。我做错了什么吗?

Uncaught Error: Configuration must contain `projectId`
    at exports.initConfig (bundle.js:2840:11)
    at SanityClient.config (bundle.js:4176:25)
    at new SanityClient (bundle.js:4144:8)
    at SanityClient (bundle.js:4141:12)
    at Module../src/client.js (bundle.js:190:69)
    at Module.options.factory (bundle.js:155836:31)
    at __webpack_require__ (bundle.js:155308:33)
    at fn (bundle.js:155507:21)
    at Module../src/container/About/About.jsx (bundle.js:869:65)
    at Module.options.factory (bundle.js:155836:31) 
  • 请提供足够的代码,以便其他人可以更好地理解或重现该问题。

标签: reactjs sanity


【解决方案1】:

你设法解决了这个问题吗?

【讨论】:

猜你喜欢
  • 2022-06-13
  • 1970-01-01
  • 2023-02-05
  • 2019-05-12
  • 2021-11-23
  • 2018-09-27
  • 2023-01-27
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多