Tencent / wepy

小程序组件化开发框架
https://wepyjs.gitee.io/wepy-docs/
Other
22.52k stars 3.05k forks source link

this.fileDep.update is not a function #2371

Open wuyanxingze opened 5 years ago

wuyanxingze commented 5 years ago

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

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

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

Please make sure you understand the following points:

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

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


Description

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

[Description of the issue]

Environment

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
  ```
wuyanxingze commented 5 years ago

"devDependencies": { "@wepy/cli": "^2.0.0-alpha.16", "@babel/core": "^7.1.0", "@babel/preset-env": "^7.1.0", "@wepy/babel-plugin-import-regenerator": "0.0.2", "babel-eslint": "^7.2.1", "cross-env": "^5.1.3", "less": "^3.8.1", "@wepy/compiler-babel": "^2.0.1", "@wepy/compiler-less": "^2.0.3" } "@wepy/cli": "^2.0.0-alpha.18", 也是报这个错误

superlbr commented 5 years ago

问题在node_modules/@wepy/complier-less/index.js第30行 this.fileDep.update => this.fileDep.addDeps

deepfunc commented 5 years ago

compiler-less 更新到 @wepy/compiler-less@2.0.5 再试试

namesZhang commented 5 years ago

更新到 @wepy/compiler-less@2.0.5 也不管用啊,试了好多方法,貌似都不管用

namesZhang commented 5 years ago

看了好多帖子也没有找到方法

deepfunc commented 5 years ago

sorry 看错了,compiler-less@2.0.5 也不是最新代码,我跟作者说下要发个版

deepfunc commented 5 years ago

compiler-less@2.0.6 已经发布,各位可以试试了。

Gcaufy commented 5 years ago
npm i compiler-less@2.0.6 --save-dev
superlbr commented 5 years ago

@Gcaufy 'compiler-less@2.0.6' is not in the npm registry

deepfunc commented 5 years ago

npm i @wepy/compiler-less@2.0.6 --save-dev Try again.