wepy 注释中出现 require 会被解析,导致找不到模块的错误

dy1byipe  于 2个月前  发布在  其他
关注(0)|答案(1)|浏览(32)

提交ISSUE前请确保已认真阅读以下内容

Please read the following information carefully before you open an issue.

在提交issue之前必须确认以下问题:

Please make sure you understand the following points:

  • 必须是一个bug或者功能新增。
  • It must be a bug or a feature request
  • 必须是WePY相关问题,原生小程序问题去 开发者论坛
  • It must be a WePY issue.
  • 已经在issue中搜索过,并且没有找到相似的issue或者解决方案。
  • I searched issue already but I did't find any relevant issues or solutions.
  • 完善下面模板中的信息
  • Please filled out the following template

阅读完后请在提交的issue中删除以上内容,包括分割线

DELETE THE INFORMATION ABOVE(INCLUDE THE SEPARATION LINE) BEFORE YOU OPEN AN ISSUE

Description

[问题描述:站在其它人的角度尽可能清晰地、简洁地把问题描述清楚]

[Description of the issue]

Environment

  • Platform: [开发者工具/iOS/Andriod/Web]
  • Platform version: [对应工具或者iOS或者Andriod的版本号]
  • Wechat version: [微信版本号]
  • wepy-cli version: [wepy-cli -v]
  • wepy version: [在package.json里]
  • other version: [如果是插件问题,请列出问题插件的版本号]

Reproduce

[如何重现问题]

[How to reproduce the issue]

Observed Results

[实际表现]

[Observed Results]

Expected Results

[期望表现]

[Expected Results]

Relevant Code / Logs

// TODO(you): code or logs here to reproduce the problem
 // 可以使用小程序代码片段功能,方便其它人帮助你定位代码问题
 // 详情可参考这里:https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html
 ```
9rnv2umw

9rnv2umw1#

Description

[Error] Missing files: ../../libs/qqmap-wx-jssdk.min in /Users/yiche/Projects/zhidao/fe-minipro-mogotaxi/src/pages/index/startposition.wpy

// const QQMapWX = require('../../libs/qqmap-wx-jssdk.min')

编译error: missing Files的文件其实 已经被删除,并且引用该代码的部分已经被注释。除非把注释的部分删除了,否则会一直编译不通过,报以上的Missing files Error

Environment

wepy: "wepy": "^1.7.2",
系统: MacOS MoJave

相关问题