Giter Site home page Giter Site logo

Comments (9)

ouyangyanhuo avatar ouyangyanhuo commented on August 20, 2024 1

已经解决全部问题,使用 'pnpm build' 之后,再使用 'npm start' 就可以使用了

from cali.so.

CaliCastle avatar CaliCastle commented on August 20, 2024

pnpm i && pnpm dev?

from cali.so.

ouyangyanhuo avatar ouyangyanhuo commented on August 20, 2024

Snipaste_2023-07-25_21-54-08
还是不大行

from cali.so.

ouyangyanhuo avatar ouyangyanhuo commented on August 20, 2024

除此之外,build还会引发#16 这个错误,解决方法还没看懂

from cali.so.

CaliCastle avatar CaliCastle commented on August 20, 2024

看起来也许是 Windows 的问题,没试过在 Windows 上面运行

from cali.so.

ouyangyanhuo avatar ouyangyanhuo commented on August 20, 2024

感谢有求必应!确实是Windows的问题,更换Ubuntu 后就正常了,但是想知道,有没有办法在自己的服务器上运行,而不使用vercel

from cali.so.

ouyangyanhuo avatar ouyangyanhuo commented on August 20, 2024

看来我再此遇到了这个问题,并且是在Linux中
我在完成 Sanity 的依赖安装后,就会出现这个问题,依旧是/studio可以访问,Vercel、本地都可以,但是它们的界面居然还有所不同
Snipaste_2023-07-27_19-17-29
Snipaste_2023-07-27_19-17-37
内容更多的是 Vercel,但是它们 Sanity 的版本甚至都是相同的,不知这是为何。

环境:
Node.js v18.17.0、NPM v9.8.1、PNPM v8.6.10、Ubuntu20(WSL)
后台 Sanity 版本显示均为 v3.12.2
复现步骤:

  1. 克隆仓库
  2. pnpm i
  3. 'npm create sanity@latest -- --template clean --create-project "Cali Demo" --dataset production'
  4. 配置其它内容
  5. pnpm dev
    在第三步中,所有内容均填为yes,template为blog,最后输入为/studio
    就会出现启动开发服务器后,Web报错的问题,并且在 Vercel 部署的 /studio 和 localhost 的/studio 有所不同

from cali.so.

CaliCastle avatar CaliCastle commented on August 20, 2024

在运行创建 sanity 项目的时候不要回答任何问题,开始问第一个问题时直接 Ctrl C 退出

from cali.so.

ouyangyanhuo avatar ouyangyanhuo commented on August 20, 2024

Snipaste_2023-07-27_20-59-32
Snipaste_2023-07-27_20-59-55
看起来,它好像出现了更无法解释的错误。ID配置是完全正确的,但是连Vercel都显示失败,这就很奇怪了

from cali.so.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.