Giter Club home page Giter Club logo

Comments (20)

CyJaySong avatar CyJaySong commented on June 19, 2024

@pagnkelly 可以看看这个情况吗

from mpx.

pagnkelly avatar pagnkelly commented on June 19, 2024

弄个最简单的demo,删了node_modules zip一下

from mpx.

CyJaySong avatar CyJaySong commented on June 19, 2024

@pagnkelly demo.zip

from mpx.

CyJaySong avatar CyJaySong commented on June 19, 2024

@pagnkelly 原因好像是因为,编码的时候,vscode的自动保存开着,比如我正准备写padding: 36rpx; 才只打了padding: ,然后VSCode自动保存了,导致重新自动编译了,然后编译失败了。然后再继续把padding: 36rpx; 完整输入,再次自动编译的时候,虽然过了,但是微信开发工具却始终不能正常渲染

from mpx.

pagnkelly avatar pagnkelly commented on June 19, 2024

image
我这显示可以,尝试删除.cache

from mpx.

CyJaySong avatar CyJaySong commented on June 19, 2024

@pagnkelly 这是录屏视频
https://f.ws59.cn/f/dsb4onbrvyo

from mpx.

pagnkelly avatar pagnkelly commented on June 19, 2024

@Blackgan3 cache问题,你看下

from mpx.

Blackgan3 avatar Blackgan3 commented on June 19, 2024

@Blackgan3 cache问题,你看下

好,我看下

from mpx.

Blackgan3 avatar Blackgan3 commented on June 19, 2024

@CyJaySong 可以看下你的小程序开发者工具-详情-本地设置-启用代码自动热重载 是否打开哈

from mpx.

CyJaySong avatar CyJaySong commented on June 19, 2024

@Blackgan3 已关闭热重载

from mpx.

Blackgan3 avatar Blackgan3 commented on June 19, 2024

@Blackgan3 已关闭热重载

你打开和关闭热重载都能复现这个问题吗

from mpx.

CyJaySong avatar CyJaySong commented on June 19, 2024

@Blackgan3 是的

from mpx.

Blackgan3 avatar Blackgan3 commented on June 19, 2024

@Blackgan3 是的

奇怪的是我打开热重载功能是没复现这个问题的,不过 "在项目根目录里未找到app.json" 这个报错和Mpx框架本身是没关联的,看起来就是代码变动时小程序开发者工具感知错误。

from mpx.

CyJaySong avatar CyJaySong commented on June 19, 2024

@Blackgan3 无论是开启热重载还是关闭热重载,都有这个问题

from mpx.

CyJaySong avatar CyJaySong commented on June 19, 2024

@Blackgan3 会不会是环境相关问题呢,可以给一个参考吗

from mpx.

Blackgan3 avatar Blackgan3 commented on June 19, 2024

@Blackgan3 会不会是环境相关问题呢,可以给一个参考吗

你当前的node版本以及开发者工具版本是多少?可以尝试更新小程序开发者工具版本

from mpx.

CyJaySong avatar CyJaySong commented on June 19, 2024

@Blackgan3 Node版本: v16.20.0, 开发者工具版本:1.06.2402040

from mpx.

CyJaySong avatar CyJaySong commented on June 19, 2024

@Blackgan3 你好,有进展吗

from mpx.

hiyuki avatar hiyuki commented on June 19, 2024

https://github.com/didi/mpx/releases/tag/v2.9.31
已修复

from mpx.

CyJaySong avatar CyJaySong commented on June 19, 2024

@hiyuki 重新执行npm run serve后,微信开发工具报在项目根目录未找到 app.json ,这个问题还没修复。还是需要微信开发工具重新打开该项目才行

from mpx.

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.