You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"description": "Migrate to the latest DevExtreme configuration components.",
58
+
"options": [{
59
+
"name": "--include",
60
+
"description": "Template file glob patterns to include (default: **/*.html). You can pass multiple patterns as a comma-separated string (e.g. \"**/a.html,**/b.html\") or as an array (e.g. [\"**/a.html\",\"**/b.html\"])."
61
+
}, {
62
+
"name": "--script-include",
63
+
"description": "TypeScript/JavaScript file glob patterns to scan for inline templates (default: **/*.ts,**/*.js). You can pass multiple patterns as a comma-separated string or as an array. Pass an empty value ('' or []) to disable."
64
+
}, {
65
+
"name": "--dry",
66
+
"description": "Run in dry mode to preview changes without applying them (default: false)."
Copy file name to clipboardExpand all lines: packages/devextreme-schematics/README.md
+27Lines changed: 27 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,3 +19,30 @@ This package includes the following schematics:
19
19
20
20
-[add-view](src/add-view)
21
21
Adds a view to a DevExtreme Angular application
22
+
23
+
## TypeScript Dependency & Global CLI Usage
24
+
25
+
Some DevExtreme migration schematics require TypeScript to process inline Angular templates. The CLI attempts to resolve TypeScript from multiple locations:
26
+
27
+
- The CLI's own node_modules
28
+
- Your project's node_modules
29
+
- The global node_modules
30
+
31
+
If TypeScript is not found, inline template migration will be skipped and a warning will be shown with resolution attempts and errors.
32
+
33
+
### How to Fix TypeScript Not Available
34
+
35
+
1.**Local Project:** Install TypeScript in your project root:
36
+
```sh
37
+
npm install typescript --save-dev
38
+
```
39
+
2.**Global CLI:** If you use the CLI globally, also install TypeScript globally:
40
+
```sh
41
+
npm install -g typescript
42
+
```
43
+
3.**npx Usage:** If you use npx, ensure TypeScript is available in your workspace or globally.
44
+
4.**Troubleshooting:**
45
+
- Some npm global installs may not link dependencies as expected. If you see repeated TypeScript resolution errors, try running the CLI from a project where TypeScript is installed locally.
46
+
- You can also manually link TypeScript to your global node_modules if needed.
47
+
48
+
If you continue to see errors, review the warning output for resolution attempts and check your npm/node installation paths.
0 commit comments