Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support angular 17 #503

Merged
merged 7 commits into from
Nov 30, 2023
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions packages/cordova-builders/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@
"ionicframework"
],
"dependencies": {
"@angular-devkit/architect": "^0.1600.0",
"@angular-devkit/build-angular": "^16.0.0",
"@angular-devkit/core": "^16.0.0",
"@angular-devkit/schematics": "^16.0.0",
"@schematics/angular": "^16.0.0",
"@angular-devkit/architect": "^0.1700.0",
"@angular-devkit/build-angular": "^17.0.0",
"@angular-devkit/core": "^17.0.0",
"@angular-devkit/schematics": "^17.0.0",
"@schematics/angular": "^17.0.0",
"cheerio": "^1.0.0-rc.10",
"colorette": "^2.0.16",
"copy-webpack-plugin": "^9.0.1",
Expand All @@ -50,7 +50,7 @@
"@types/node": "^16.11.7",
"@types/ws": "^8.2.0",
"lint-staged": "^12.0.2",
"typescript": "~5.0.2"
"typescript": "~5.2.0"
},
"builders": "./builders.json",
"schematics": "./collection.json",
Expand Down
6 changes: 3 additions & 3 deletions packages/schematics/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@
"ionicframework"
],
"dependencies": {
"@angular-devkit/core": "^16.0.0",
"@angular-devkit/schematics": "^16.0.0",
"@schematics/angular": "^16.0.0"
"@angular-devkit/core": "^17.0.0",
"@angular-devkit/schematics": "^17.0.0",
"@schematics/angular": "^17.0.0"
},
"devDependencies": {
"lint-staged": "^12.0.2",
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"skipLibCheck": true,
"strict": true,
"target": "es2018",
"lib": ["es2018"],
"lib": ["es2018", "dom"],
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Without this, I get the following error on build:

util/ast-util.ts:374:5 - error TS2584: Cannot find name 'console'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'.

374     console.error('No app module found. Please add your new class to your component.');
        ~~~~~~~

"plugins": [{ "name": "typescript-eslint-language-service" }]
},
"include": ["**/*.ts"],
Expand Down