Skip to content
This repository has been archived by the owner on Mar 7, 2024. It is now read-only.

[BUG] 使用cli初始化跨平台小程序项目,启动时报错 #1380

Closed
alexlees opened this issue Nov 25, 2020 · 0 comments · Fixed by #1381
Closed

[BUG] 使用cli初始化跨平台小程序项目,启动时报错 #1380

alexlees opened this issue Nov 25, 2020 · 0 comments · Fixed by #1381
Labels
bug Something isn't working

Comments

@alexlees
Copy link
Contributor

bug 描述
使用cli初始化跨平台小程序项目,启动时报错

schema-utils/dist/validate.js:98
    throw new _ValidationError.default(errors, schema, configuration);
    ^

ValidationError: Invalid configuration object. remax has been initialized using a configuration object that does not match the API schema.
 - configuration has an unknown property 'one'. These properties are valid:

发现是getConfig.ts#L29OptionsSchema.json
检查了配置项,但是未兼容之前版本的配置项

// remax.config.js
module.exports = {
  one: true,
  output: 'dist/' + process.env.REMAX_PLATFORM
};

复现步骤

  1. npx create-remax-app one-app-remax
  2. 选择跨平台小程序
  3. npm i
  4. npm run dev wechat

期望结果
正常启动

复现代码
[请提供一个可复现问题的代码仓库]

版本信息:

  • remax 版本: 2.9.0
  • 开发环境 mac OS

其他信息

@alexlees alexlees added the bug Something isn't working label Nov 25, 2020
Darmody pushed a commit that referenced this issue Nov 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant