question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature(scope): Support Angular v14

See original GitHub issue

Is there an existing issue for this?

  • I have searched the existing issues

Which Transloco package(s) will this feature affect?

Transloco

Is your feature request related to a problem? Please describe

Transloco Schematics do not work with new Angular 14 project. Steps to reproduce:

  1. Install latest Angular CLI npm install -g @angular/cli
  2. Create new Angular v14 project ng new my-first-project
  3. Try to add Transloco ng add @ngneat/transloco
  4. Installation will fail to error Cannot read properties of undefined (reading 'projectType')
$ ng add @ngneat/transloco
Skipping installation: Package already installed
? 🌍 Which languages do you need? en, es
? 🚀 Are you working with server side rendering? No
Cannot read properties of undefined (reading 'projectType')

Describe the solution you’d like

Add support to Angular v14. (Something schematics related probably broke in latest releases)

Describe alternatives you’ve considered

Alternative provide guide how to add Transloco without schematics to Angular v14.

Additional context

Not sure if related but angular-cli version 14.0.0 had breaking change with @angular-devkit/schematics-cli that says camel case arguments are no longer allowed. https://github.com/angular/angular-cli/blob/main/CHANGELOG.md#1400-2022-06-02

I would like to make a pull request for this feature

No

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:8
  • Comments:19 (8 by maintainers)

github_iconTop GitHub Comments

18reactions
b-legrandcommented, Jul 27, 2022

i’m having the same issue, it seems the default project cannot be detected anymore.

using the --project argument fixes it :

ng new i18n-transloco-test
cd i18n-transloco-test
ng add @ngneat/transloco --project=i18n-transloco-test
3reactions
rijad992commented, Aug 5, 2022

passing project argument does not seem to work for me.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Angular v14 is now available!
v14 adds support for passing in an optional injector when creating an embedded view through ViewContainerRef.createEmbeddedView and TemplateRef.
Read more >
Angular Roadmap
Angular receives a large number of feature requests, both from inside Google and from the broader open-source community. At the same time, ...
Read more >
Update Angular to v15
Angular v15 brings many improvements and new features. ... a component definition whose scope name is host-my-cmp , a @keyframes rule with a...
Read more >
Angular v15 is now available!
In v14 we introduced new standalone APIs which enable developers to build applications without using NgModules. We're happy to share that ...
Read more >
Upgrading from AngularJS to Angular
In this example application, each controller, component, service, and filter is in its own source file. Folders-by-Feature Structure
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found