Install the CDK with version 9.2.2 and try to import createUpgradeRule and RuleUpgradeData from the schematics package of the CDK.
with version 9.2.1 it was working. So the API was broken in a patch version.
It should be possible to import createUpgradeRule and RuleUpgradeData with the version 9.2.2 of @angular/cdk
import {
createUpgradeRule,
RuleUpgradeData,
} from '@angular/cdk/schematics';
A regression was introduced with this version where those two functions are not exported anymore this causes the build to fail.
error TS2305: Module '"@angular/cdk/schematics"' has no exported member 'createUpgradeRule'.
error TS2305: Module '"@angular/cdk/schematics"' has no exported member 'RuleUpgradeData'.
cdk/schematics is unfortunately not a public API and is not documented anywhere. We'd like to someday offer some of what we've built publicly, but for now we don't have the ability to support it as such.
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
_This action has been performed automatically by a bot._
Most helpful comment
cdk/schematics is unfortunately not a public API and is not documented anywhere. We'd like to someday offer some of what we've built publicly, but for now we don't have the ability to support it as such.