Giter Club home page Giter Club logo

Comments (11)

sage-z avatar sage-z commented on June 4, 2024

发现是button组件的问题,当我打开devtool后报这个错
image
项目重新npm run start后一切正常,但是每当修改代码保存后自动刷新时就会报错
react-molin是和antd-mobile有兼容问题吗?还是自动刷新的问题?

from react-molin.

Molin123 avatar Molin123 commented on June 4, 2024

@Zegapaiz 你可以把代码贴出来,我看一下。

from react-molin.

sage-z avatar sage-z commented on June 4, 2024
 @Molin123 

image
image

from react-molin.

Molin123 avatar Molin123 commented on June 4, 2024

@Zegapaiz

onClick = () => {
	Popup.show(<div>666</div>)
}
render(){
        return(
            <div>
                     <Button onClick={this.onClick}>显示</Button>
            </div>
        )
    }

我试了一下,没发现你说的问题。

from react-molin.

sage-z avatar sage-z commented on June 4, 2024

@Molin123
复现步骤

  1. npm run start
  2. 使用 chrome浏览器 或者 微信web开发者工具 打开http://127.0.0.1:1024/app.html#/list 并打开控制台console面板
  3. 在src/app/list.js中第44行插入 <Button onClick={onClick}>显示</Button>
  4. 在第37行插入 const onClick = () => { Popup.show(<div>666</div>) }
  5. 在第8行引入Popup和Button组件
  6. command + s 保存 观察控制台console面板中的信息

from react-molin.

Molin123 avatar Molin123 commented on June 4, 2024

@Zegapaiz 按照你的步骤试了一下,也是没有问题的

from react-molin.

sage-z avatar sage-z commented on June 4, 2024

@Molin123 没有报错吗?是新git下来的代码吗?你本地的和线上仓库中的代码是否有区别?我在另外一个位置新拉下来代码新建一个工程,按照上述过程同样报错

from react-molin.

Molin123 avatar Molin123 commented on June 4, 2024

@Zegapaiz 是和master分支一样的

from react-molin.

sage-z avatar sage-z commented on June 4, 2024

@Molin123 我这边还是报错= =晚上我换台电脑试试

from react-molin.

sage-z avatar sage-z commented on June 4, 2024

@Molin123 我换了台电脑仍然出现问题,方便留下邮箱吗?我将发送一个录屏说明我的问题

from react-molin.

Molin123 avatar Molin123 commented on June 4, 2024

@Zegapaiz [email protected]

from react-molin.

Related Issues (14)

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.