将 Angular Material 从 16 迁移到 17 时出现目录错误

问题描述 投票:0回答:1

我正在尝试运行 Angular Material 迁移工具以从 16 迁移到 17,但收到一条错误消息,指出目录必须是字符串。 JSON 显示它是错误的。没有提示,我正在项目目录中运行该命令。我做错了什么?

PS C:\Users\x\portal\client> ng generate @angular/material:mdc-migration
? What components do you want to migrate? Button, Card, Checkbox, Chips, Dialog, Form Field, Input, Select,
Autocomplete, List, Menu, Paginator, Progress Bar, Progress Spinner, Radio, Slide Toggle, Slider, Snack Bar, Table,
Tabs, Tooltip
Schematic input does not validate against the Schema: {"directory":false,"components":["button","card","checkbox","chips","dialog","form-field","list","menu","paginator","progress-bar","progress-spinner","radio","slide-toggle","slider","snack-bar","table","tabs","tooltip"]}
Errors:

  Data path "/directory" must be string.
angular angular-material
1个回答
0
投票

看来该主题已经已知并且已经修复,我们必须等待新更改的发布。您可以在 github 问题上找到更多信息:https://github.com/angular/components/issues/28335.

发布已准备就绪。您可以使用版本“@angular/material:”^17.0.5”并且它应该可以正常工作

© www.soinside.com 2019 - 2024. All rights reserved.