DevExtreme schematics
This package includes the following schematics:
- install
Adds DevExtreme to an Angular application.
- add-layout
Adds a DevExtreme layout to an Angular application.
- add-app-template
Adds a DevExtreme app template to an Angular application.
- add-sample-views
Adds sample views to an Angular application.
- add-view
Adds a view to an Angular application.
Some DevExtreme migration schematics require TypeScript to process inline Angular templates. The CLI attempts to resolve TypeScript from multiple locations:
- The CLI's own node_modules
- Your project's node_modules
- The global node_modules
If the CLI fails to find TypeScript, it skips inline template migration and displays a warning message that contains resolution attempts and errors.
1. Local Project: To install TypeScript in a project, run the following command:
``sh`
npm install typescript --save-dev
`
2. Global CLI: To install TypeScript globally on your machine, run the following command:
sh``
npm install -g typescript
Troubleshooting
- Some npm global installs may not link dependencies as expected. If you experience repeated TypeScript resolution errors, try running CLI commands from a project where TypeScript is installed locally.
- You can also manually link TypeScript to your global node_modules if needed.
If errors persist, review resolution attempt information in the warning output and check your npm/node installation paths.