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

Taro 1.3.0-beta6版本引入node querystring依赖报错 #3302

Closed
dreamthen opened this issue Jun 4, 2019 · 5 comments
Closed

Taro 1.3.0-beta6版本引入node querystring依赖报错 #3302

dreamthen opened this issue Jun 4, 2019 · 5 comments
Labels
question Further information is requested

Comments

@dreamthen
Copy link

dreamthen commented Jun 4, 2019

问题描述

Taro 1.3.0-beta6版本引入node querystring依赖报错

复现步骤

import qs from 'querystring';
//会在新版本的微信开发者工具上报错

期望行为

希望普遍的这种node外部依赖,可以正常的在微信开发者工具上运行

报错信息

控制台显示:

错误 引用文件 文件 /Users/yinwk/keryi/Pet-Planet/src/pages/attendance/index.js 中引用 ../../../querystring 不存在!

微信开发者工具上显示:

thirdScriptError 
 sdk uncaught third Error 
 can't find module : ../../../querystring 
 Error: can't find module : ../../../querystring
    at http://127.0.0.1:42473/appservice/__dev__/WAService.js:19:6692
    at http://127.0.0.1:42473/appservice/pages/attendance/index.js:29:20
    at require (http://127.0.0.1:42473/appservice/__dev__/WAService.js:19:7304)
    at <anonymous>:191:7
    at HTMLScriptElement.scriptLoaded (http://127.0.0.1:42473/appservice/appservice?t=1559614945671:3441:21)
    at HTMLScriptElement.script.onload (http://127.0.0.1:42473/appservice/appservice?t=1559614945671:3453:20)

系统信息

  • 操作系统: macOS Mojave 10.14.5
  • Taro 版本: 1.3.0-beta6
  • Node.js 版本: v10.15.3
  • 报错平台: weapp

补充信息

@taro-bot
Copy link

taro-bot bot commented Jun 4, 2019

欢迎提交 Issue~

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

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

Good luck and happy coding~

@luckyadam
Copy link
Member

没有复现,你安装这个包了么

@luckyadam luckyadam added answered question Further information is requested labels Jun 10, 2019
@taro-bot
Copy link

taro-bot bot commented Jun 10, 2019

Hello~

您的问题楼上已经有了确切的回答,如果没有更多的问题这个 issue 将在 15 天后被自动关闭。

如果您在这 15 天中更新更多信息自动关闭的流程会自动取消,如有其他问题也可以发起新的 Issue。

Good luck and happy coding~

@taro-bot taro-bot bot removed the to be closed label Jun 10, 2019
@taro-bot taro-bot bot closed this as completed Jun 10, 2019
@luosheng
Copy link

在1.3.0正式版上也碰到了同样的问题。

报错信息见截屏,可复现的代码见附件。

屏幕快照2019-06-11下午5 27 59

dependency-bug.zip

@17hz
Copy link

17hz commented Aug 16, 2019

@luosheng 可以使用 https://www.npmjs.com/package/query-string 代替

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

No branches or pull requests

4 participants