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

更新到v2.0版本后,wxp 不显示提示 #67

Closed
Hoyoe opened this issue May 7, 2018 · 4 comments
Closed

更新到v2.0版本后,wxp 不显示提示 #67

Hoyoe opened this issue May 7, 2018 · 4 comments

Comments

@Hoyoe
Copy link

Hoyoe commented May 7, 2018

按照指南将v1.x 的项目升级到了 v2.0 版本
使用中发现两个问题

  • wxp.方法 不会提示了,别的如 wx.方法 提示正常
  • 开发模式下每次代码修改就会重新覆盖 project.config.json,导致在开发者工具内“添加编译模式”的内容消失(之前是每次npm run dev时覆盖一次)
@Hoyoe
Copy link
Author

Hoyoe commented May 7, 2018

{
  "dependencies": {
    "@minapp/core": "^2.0.0",
    "@minapp/wx": "latest"
  },
  "devDependencies": {
    "@minapp/cli": "^2.0.1",
    "babel-runtime": "^6.24.0",
    "node-sass": "^4.9.0",
    "sass-loader": "^7.0.1"
  }
}

@qiu8310
Copy link
Owner

qiu8310 commented May 7, 2018

第一个问题解决了,你执行下 npm upgrade @minapp/wx 即可。
第二个问题我稍后看看

@qiu8310
Copy link
Owner

qiu8310 commented May 7, 2018

第二个问题临时解决方案是,你每次添加完编译模式就把 dist 中的 project.config.json 复制到 src 目录中

@Hoyoe
Copy link
Author

Hoyoe commented May 7, 2018

好的

@qiu8310 qiu8310 closed this as completed in 3afef15 May 7, 2018
qiu8310 added a commit that referenced this issue May 7, 2018
* master:
  docs: update changelog
  v2.0.2
  fix(cli): 修复 dev 模式下未更新的文件也会重新生成; close #67
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

2 participants