Comments (10)
@NetanelBasal How should this be done? Is it just an nx migration that needs to be ran? I could try helping out, but would be great with some pointers. We really would like to migrate and try angular 17 for our application and transloco is the only thing that is preventing us right now. :)
from transloco.
I have the same issue with Transloco and Angular 17 :(
from transloco.
@shaharkazaz, thanks for getting back to this. Indeed it works! Not sure why we experienced an issue with our upgrade. I've tested with 6.0.1 and it works. Thanks. :)
from transloco.
I don't know then if my PR is still required @shaharkazaz. I guess it would be nice to have the repo updated to the latest version. I have push all the changes that you asked for the PR btw
from transloco.
@whernebrink
What is the error when you want to use it with angular 17 ?
if it is only the version issue when you try to npm i ?
Then my first guess is that this repo just need to run a angular 17 migration
This will basically bump all angular version to 17 in all package.json file
https://github.com/ngneat/transloco/blob/ab57b376ba11cfa380405fe0fc88a2751f0184cd/libs/transloco/package.json#L43
from transloco.
I just created a brand new angular 17 app installed @ngneat/transloco and it works fine
So what's the issue @beloveddd and @whernebrink
from transloco.
@alexdabast Thank you for asking the exact question I wanted to ask and for the PR 🙂
What is the issue here? Transloco works with Angular 17.
from transloco.
@whernebrink can you share what was the issue you faced?
from transloco.
@shaharkazaz, unfortunately not. I was filing the issue on behalf of a team mate who was the one trying. Probably not a "real" issue I suppose. Node version, old node_module, or other local thing. Sorry for not having a better answer.
from transloco.
I am getting this error after migration to Angular 17 @alexdabast
Anything I'm doing wrong here??
node_modules/@ngneat/transloco/lib/transloco.providers.d.ts:23:21 - error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("@angular/core")' call instead.
23 provide: import("@angular/core").InjectionToken<Content>;
~~~~~~~~~~~~~~~
node_modules/@ngneat/transloco/lib/transloco.service.d.ts:1:27 - error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("@angular/core")' call instead.
1 import { OnDestroy } from '@angular/core';
~~~~~~~~~~~~~~~
node_modules/@ngneat/transloco/lib/transloco.service.d.ts:10:21 - error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("@angular/core")' call instead.
10 import * as i0 from "@angular/core";
from transloco.
Related Issues (20)
- Bug(transloco): Loader with scope not working for NotFound route expression ** HOT 1
- Bug(preload-langs): NullInjectorError: No provider for TranslocoPreloadLangsService | Angular 16 HOT 3
- ng-add Path "undefined" does not exist HOT 14
- Docs for unit tests, broken links HOT 3
- Feature(transloco): allow option to disable loading language files at root i18n level HOT 1
- Bug(tranloco): provideTranslocoTranspiler does not work with FunctionalTranspiler HOT 1
- Bug(transloco): Multiple languages on the application simultaneously with pipe HOT 4
- Bug(transloco-optimize): Translation broken in production HOT 4
- Feature(transloco): use fallback language for resolving referenced keys
- Bug(scope): inflight 1.0.6 dependency has security issue.
- Bug(scope): Unit tests failing with standalone components HOT 1
- Bug(scope): scoped extractions prefixed not working HOT 3
- Bug(scope): Error when trying to load MFE within host using module federation (unless giving the same setup in host) HOT 1
- Proper changelogs... HOT 2
- Bug(scope): logging "missing translation key" when ssr is enabled HOT 1
- Feature(Docs): Another way for preloading languages to discuss
- Feature(transloco|transloco-locale): Provide complete type definitions for pipes used in strict mode HOT 1
- Can't add Transloco to a project: collection.json does not exist HOT 8
- When I call setActiveLang it trigger CD?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from transloco.