alibaba / rax

🐰 Rax is a progressive framework for building universal application. https://rax.js.org
Other
7.99k stars 623 forks source link

[Question]如何不提示`[Config File] Config key 'xxx' is not supported` #2342

Open xmsz opened 2 years ago

xmsz commented 2 years ago

背景

{
  "targets": ["web"],
  "wechat-miniprogram": {
    "nativeConfig": {
      "appid": "xxx"
    }
  }
}

会提示[Config File] Config key 'wechat-miniprogram' is not supported

除非我加上targets加上wechat-miniprogram

然后我场景是

需求

SoloJiang commented 2 years ago

可以命令行指定需要调试的端,比如 npm start -- --dev-targets=web

xmsz commented 2 years ago

可以命令行指定需要调试的端,比如 npm start -- --dev-targets=web

image

还是提示一样的错误