我正在尝试为 Ionic 运行以下简单的启动命令:
ionic serve
这应该启动一个为我的项目提供服务的开发服务器,但它会引发以下错误:
> ng.cmd run app:serve --host=localhost --port=810
[ng] Browserslist: caniuse-lite is outdated. Please run next command `npm update`
[ng] An unhandled exception occurred: Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.
[ng] - configuration.context: The provided value "C:\Users\anton\OneDrive\Desktop\Documentos!\ionic\03-componentes" contains exclamation mark (!) which is not allowed because it's reserved for loader syntax.
[ng] -> The base directory (absolute path!) for resolving the `entry` option. If `output.pathinfo` is set, the included pathinfo is shortened to this directory.
[ng] - configuration.module.rules[13].include should be one of these:
[ng] RegExp | string | function | [(recursive)] | object { and?, exclude?, include?, not?, or?, test? } | [RegExp | string | function | [(recursive)] | object { and?, exclude?, include?, not?, or?, test? }]
[ng] -> One or multiple rule conditions
[ng] Details:
[ng] * configuration.module.rules[10].include[0]: The provided value "C:\Users\anton\OneDrive\Desktop\Documentos!\ionic\03-componentes\src\theme\variables.scss" contains exclamation mark (!) which is not allowed because it's reserved for loader syntax.
[ng] * configuration.module.rules[10].include[1]: The provided value "C:\Users\anton\OneDrive\Desktop\Documentos!\ionic\03-componentes\src\global.scss" contains exclamation mark (!) which is not allowed because it's reserved for loader syntax.
[ng] * configuration.module.rules[10].include[0]: The provided value "C:\Users\anton\OneDrive\Desktop\Documentos!\ionic\03-componentes\src\theme\variables.scss" contains exclamation mark (!) which is not allowed because it's reserved for loader syntax.
[ng] * configuration.module.rules[10].include[1]: The provided value "C:\Users\anton\OneDrive\Desktop\Documentos!\ionic\03-componentes\src\global.scss" contains exclamation mark (!) which is not allowed because it's reserved for loader syntax.
[ng] * configuration.module.rules[11].include[0]: The provided value "C:\Users\anton\OneDrive\Desktop\Documentos!\ionic\03-componentes\src\theme\variables.scss" contains exclamation mark (!) which is not allowed because it's reserved for loader syntax.
[ng] * configuration.module.rules[11].include[1]: The provided value "C:\Users\anton\OneDrive\Desktop\Documentos!\ionic\03-componentes\src\global.scss" contains exclamation mark (!) which is not allowed because it's reserved for loader syntax.
[ng] * configuration.module.rules[11].include[0]: The provided value "C:\Users\anton\OneDrive\Desktop\Documentos!\ionic\03-componentes\src\theme\variables.scss" contains exclamation mark (!) which is not allowed because it's reserved for loader syntax.
[ng] * configuration.module.rules[11].include[1]: The provided value "C:\Users\anton\OneDrive\Desktop\Documentos!\ionic\03-componentes\src\global.scss" contains exclamation mark (!) which is not allowed because it's reserved for loader syntax.
[ng] * configuration.module.rules[12].include[0]: The provided value "C:\Users\anton\OneDrive\Desktop\Documentos!\ionic\03-componentes\src\theme\variables.scss" contains exclamation mark (!) which is not allowed because it's reserved for loader syntax.
[ng] * configuration.module.rules[12].include[1]: The provided value "C:\Users\anton\OneDrive\Desktop\Documentos!\ionic\03-componentes\src\global.scss" contains exclamation mark (!) which is not allowed because it's reserved for loader syntax.
[ng] * configuration.module.rules[12].include[0]: The provided value "C:\Users\anton\OneDrive\Desktop\Documentos!\ionic\03-componentes\src\theme\variables.scss" contains exclamation mark (!) which is not allowed because it's reserved for loader syntax.
[ng] * configuration.module.rules[12].include[1]: The provided value "C:\Users\anton\OneDrive\Desktop\Documentos!\ionic\03-componentes\src\global.scss" contains exclamation mark (!) which is not allowed because it's reserved for loader syntax.
[ng] * configuration.module.rules[13].include[0]: The provided value "C:\Users\anton\OneDrive\Desktop\Documentos!\ionic\03-componentes\src\theme\variables.scss" contains exclamation mark (!) which is not allowed because it's reserved for loader syntax.
[ng] * configuration.module.rules[13].include[1]: The provided value "C:\Users\anton\OneDrive\Desktop\Documentos!\ionic\03-componentes\src\global.scss" contains exclamation mark (!) which is not allowed because it's reserved for loader syntax.
[ng] * configuration.module.rules[13].include[0]: The provided value "C:\Users\anton\OneDrive\Desktop\Documentos!\ionic\03-componentes\src\theme\variables.scss" contains exclamation mark (!) which is not allowed because it's reserved for loader syntax.
[ng] * configuration.module.rules[13].include[1]: The provided value "C:\Users\anton\OneDrive\Desktop\Documentos!\ionic\03-componentes\src\global.scss" contains exclamation mark (!) which is not allowed because it's reserved for loader syntax.
[ng] - configuration.output.path: The provided value "C:\Users\anton\OneDrive\Desktop\Documentos!\ionic\03-componentes\www" contains exclamation mark (!) which is not allowed because it's reserved for loader syntax.
[ng] -> The output directory as **absolute path** (required).
[ng] See "C:UsersantonAppDataLocalTempng-AnavB0angular-errors.log" for further details.
[ERROR] ng has unexpectedly closed (exit code 127).
The Ionic CLI will exit. Please check any output above for error details.
有人可以告诉我这个错误意味着什么吗?
输出日志清楚地指出
提供的值"C:\Users\anton\OneDrive\Desktop\Documentos!\ionic\03-componentes\www"包含感叹号 (!(,这是不允许的。
删除文件夹中的!
Documentos!