【问题标题】:Ionic Serve error - "Schema validation failed with the following errors: Data path "" must NOT have additional properties(es5BrowserSupport)."Ionic Serve 错误 - \“架构验证失败,出现以下错误:数据路径 \"\" 不得具有其他属性 (es5BrowserSupport)。\"
【发布时间】:2022-09-30 07:20:55
【问题描述】:

我无法使用 Ionic 启动前端服务器。我尝试安装依赖项和多种方法来运行我的应用程序的前端。我终于得到这个错误:

> ng run app:serve --host=0.0.0.0 --port=8100

> Node.js version v17.1.0 detected.

> Odd numbered Node.js versions will not enter LTS status and should not be used for production. For more information, please see https://nodejs.org/en/about/releases/.

> Warning: This is a simple server for use in testing or debugging Angular applications
locally. It hasn\'t been reviewed for security issues.

> Binding this server to an open connection can result in compromising your application or
computer. Using a different host than the one passed to the \"--host\" flag might result in
websocket connection issues. You might need to use \"--disable-host-check\" if that\'s the
case.

> Schema validation failed with the following errors:
Data path \"\" must NOT have additional properties(es5BrowserSupport).

[ERROR] ng has unexpectedly closed (exit code 1).

        The Ionic CLI will exit. Please check any output above for error details.

任何人都可以提供一种方法来从头开始使用正确的软件包版本设置 Ionic 或提供更好的解决方案吗?

  • 我不完全确定这与 python 有什么关系;但请澄清您如何设置您的离子项目以及配置/代码。
  • > nvm install 12.20.1(由于 v17 提供问题而降级) > npm install -g cordova > npm install -g ionic > npm install -g @angular/cli > npm install --save-dev @angular-devkit/build- angular > npm install --save-dev node-sass > cd ../frontend > ionic repair > ionic serve

标签: python node.js ionic-framework


【解决方案1】:

从 angular.json 中删除 es5BrowserSupport: True

【讨论】:

    猜你喜欢
    • 2019-02-23
    • 2021-08-22
    • 2021-11-05
    • 2021-04-01
    • 2020-07-11
    • 1970-01-01
    • 2019-10-25
    • 1970-01-01
    • 2019-06-14
    相关资源
    最近更新 更多