Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在h5中,浏览器控制台会报错Unchecked runtime.lastError: The message port closed before a response was received. #2225

Closed
xinconan opened this issue Feb 20, 2019 · 6 comments
Assignees

Comments

@xinconan
Copy link

问题描述
在h5中,点击页面任何位置,浏览器控制台报错:
Unchecked runtime.lastError: The message port closed before a response was received.

复现步骤

handleChange (target, e) {
    this.setState({
      [target]: e.target.value
    })
  }
...
// render
<View className='at-row at-row__align--center'>
          <View className='label'>输入</View>
          <View className='at-col'>
            <Input type='number' value={free} onChange={this.handleChange.bind(this, 'free')}></Input>
          </View>
        </View>

期望行为
没有报错

报错信息
Unchecked runtime.lastError: The message port closed before a response was received.

image

虽然不影响页面,但看着还是挺难受的

系统信息

  • 操作系统: [Windows 10]
  • Taro 版本 [v.1.2.13]
  • Node.js 版本 [v8.9.4]
  • 报错平台 [h5]
@taro-bot
Copy link

taro-bot bot commented Feb 20, 2019

欢迎提交 Issue~

如果你提交的是 bug 报告,请务必遵循 Issue 模板的规范,尽量用简洁的语言描述你的问题,最好能提供一个稳定简单的复现。🙏🙏🙏

如果你的信息提供过于模糊或不足,或者已经其他 issue 已经存在相关内容,你的 issue 有可能会被关闭。

Good luck and happy coding~

@luckyadam luckyadam added the H5 label Feb 21, 2019
@taro-bot
Copy link

taro-bot bot commented Feb 21, 2019

CC @Littly

@Littly
Copy link
Contributor

Littly commented Feb 21, 2019

控制台报错信息往右边截多一点,看看报错的是哪个文件?

@xinconan
Copy link
Author

@Littly 没有具体报错的文件
image

@xinconan
Copy link
Author

应该不是Taro的问题

@chaixuhong
Copy link

浏览器有道翻译插件的问题,将浏览器扩展程序关掉。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants