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

Deploy does not work with angular 13 #137

Closed
tiberiuzuld opened this issue Nov 5, 2021 · 6 comments
Closed

Deploy does not work with angular 13 #137

tiberiuzuld opened this issue Nov 5, 2021 · 6 comments
Labels

Comments

@tiberiuzuld
Copy link

Current latest version does not work with angular v13

> [email protected] deploy
> ng deploy

An unhandled exception occurred: Cannot find module '@angular-devkit/architect'
Require stack:
- /home/runner/work/angular-gridster2/angular-gridster2/node_modules/angular-cli-ghpages/deploy/builder.js
- /home/runner/work/angular-gridster2/angular-gridster2/node_modules/@angular/cli/node_modules/@angular-devkit/architect/node/node-modules-architect-host.js
- /home/runner/work/angular-gridster2/angular-gridster2/node_modules/@angular/cli/node_modules/@angular-devkit/architect/node/index.js
- /home/runner/work/angular-gridster2/angular-gridster2/node_modules/@angular/cli/models/architect-command.js
- /home/runner/work/angular-gridster2/angular-gridster2/node_modules/@angular/cli/commands/deploy-impl.js
- /home/runner/work/angular-gridster2/angular-gridster2/node_modules/@angular/cli/node_modules/@angular-devkit/schematics/tools/export-ref.js
- /home/runner/work/angular-gridster2/angular-gridster2/node_modules/@angular/cli/node_modules/@angular-devkit/schematics/tools/index.js
- /home/runner/work/angular-gridster2/angular-gridster2/node_modules/@angular/cli/utilities/json-schema.js
- /home/runner/work/angular-gridster2/angular-gridster2/node_modules/@angular/cli/models/command-runner.js
- /home/runner/work/angular-gridster2/angular-gridster2/node_modules/@angular/cli/lib/cli/index.js
- /home/runner/work/angular-gridster2/angular-gridster2/node_modules/@angular/cli/lib/init.js
See "/tmp/ng-ea1azD/angular-errors.log" for further details.
@JohannesHoppe
Copy link
Member

Ok, I will work on this next week. Please use the standalone version until the issue is resolved:

https://github.com/angular-schule/angular-cli-ghpages/blob/master/docs/README_standalone.md

@euaaron
Copy link

euaaron commented Nov 11, 2021

Just adding more info, this is what happens during the installation of angular-cli-ghpages under an Angular 13 project generated by @angular/cli:

yarn ng add angular-cli-ghpages
yarn run v1.22.17
$ ng add angular-cli-ghpages
 Using package manager: yarn✔ Found compatible package version: angular-cli-ghpages@0.6.2. Package information loaded.

The package angular-cli-ghpages@0.6.2 will be installed and executed.Would you like to proceed? Yes
 Package successfully installed.An unhandled exception occurred: NOT SUPPORTED: keyword "id", use "$id" for schema ID  
See "C:\Users\euaar\AppData\Local\Temp\ng-WkWfhC\angular-errors.log" for further details.
error Command failed with exit code 127.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

@JohannesHoppe
Copy link
Member

I just published [email protected] to npm! This version supports Angular 13.
Many thanks to @fmalcher for the patch!

@JohannesHoppe
Copy link
Member

JohannesHoppe commented Nov 19, 2021

Hello @euaaron, please take a look at the version resolution of yarn. The latest version is v1.0.0-rc.3.
The version in the error message is 0.6.2, which is very old.

To force the right version, you can use:

@euaaron
Copy link

euaaron commented Nov 19, 2021

Hello @euaaron, please take a look at the version resolution of yarn. The latest version is v1.0.0-rc.3.
The version in the error message is 0.6.2, which is very old.

To force the right version, you can use:

Oh, I forgot to say that I've solved by installing with yarn add -D angular-cli-ghpages@next instead of using ng add.

But i will try your tip too. Thanks!

@fmalcher
Copy link
Member

fmalcher commented Nov 19, 2021

@euaaron In the meantime, we released 1.0.0 so you should be able to do ng add again as usual. 🙂 Let us know if there are any issues!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants