Giter VIP home page Giter VIP logo

Comments (8)

tong822218 avatar tong822218 commented on August 25, 2024 1

我这边试了一下还是不行,不过非常感谢你付出的时间 @Ares-Chang

from uni-vitesse.

konata33 avatar konata33 commented on August 25, 2024 1

嗨,我这边尝试复现您的问题,当我执行到您这个步骤的时候也会报错,但是与您是不同的错误信息
把node_modues 和 pnpm_lock.yaml (你项目中自带的)删除后,重新pnpm install & pnpm run dev:h5

image

我猜测是与包的版本有联系,在不同的包版本之间造成不兼容的情况,所以我建议您尽量不要删除pnpm_lock.yaml这个文件

from uni-vitesse.

Ares-Chang avatar Ares-Chang commented on August 25, 2024 1

👌那我就 close 了,有问题欢迎随时反馈~

from uni-vitesse.

Ares-Chang avatar Ares-Chang commented on August 25, 2024

请问可以再提供一此别的信息嘛,例如是否有修改,node/pnpm/hbuildx 版本等信息。
因为我没有真实安卓设备,选择了在夜神模拟器中运行是完全没有问题的。
image

from uni-vitesse.

tong822218 avatar tong822218 commented on August 25, 2024

感谢大佬这么快就回复了我,我详细说一下我这边遇到的问题,先说h5,我按照你提供的方法 npx degit xxxx 拉下代码后 运行pnpm instal pnpm run dev:h5 这样是没有问题的,但是我把node_modues 和 pnpm_lock.yaml (你项目中自带的)删除后,重新pnpm install & pnpm run dev:h5 就会报上面我截图的那个错误 。
app端,我用hbuild打开项目后 pnpm install 然后运行到 app底座直接就报上面的错误了,一模一样的 我的配置信息如下
image
image
image

from uni-vitesse.

Ares-Chang avatar Ares-Chang commented on August 25, 2024

兄弟,你用的是新款 Mac 的芯片吧?
我找了一下,可以参考一下这个 帖子 看是否能解决你的问题。

from uni-vitesse.

Ares-Chang avatar Ares-Chang commented on August 25, 2024

我用的是 Win11 的环境,如果你删除了 pnpm-lock.yaml 文件重新下载的话,我不能确定它是否会按照你的系统来进行判断下载。

可以参考一下我上面找的文章,这是 Dcloud 的官方论坛,我看这个问题的热度还是很高的,但是官方好像并不想管。

可以试一下,我不是 Mac ,给不了你太大的帮助。

image

from uni-vitesse.

tong822218 avatar tong822218 commented on August 25, 2024

感谢各位回复,我在项目中pnpm i @esbuild/[email protected] -D 安装完这个包后,可以在hbuildx app端正常启动了

from uni-vitesse.

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.