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

Error generating with Angular 16 #267

Open
GeorgBreithaupt opened this issue Oct 26, 2023 · 1 comment
Open

Error generating with Angular 16 #267

GeorgBreithaupt opened this issue Oct 26, 2023 · 1 comment

Comments

@GeorgBreithaupt
Copy link

When I run it on Angular 16 with typescript 5.1.3 I get the following error:

C:\Users\Georg\source\repos\BykSupport\Byk.Support.Client\node_modules\typescript\lib\typescript.js:27865
languageVersion,
^

TypeError: Cannot destructure property 'languageVersion' of '(intermediate value)(intermediate value)(intermediate value)' as it is null.
at Object.createSourceFile (C:\Users\Georg\source\repos\BykSupport\Byk.Support.Client\node_modules\typescript\lib\typescript.js:27865:7)
at ServiceParser.AbstractAstParser._createSourceFile (C:\Users\Georg\source\repos\BykSupport\Byk.Support.Client\node_modules\ngx-translate-extract\dist\parsers\abstract-ast.parser.js:8:19)
at ServiceParser.extract (C:\Users\Georg\source\repos\BykSupport\Byk.Support.Client\node_modules\ngx-translate-extract\dist\parsers\service.parser.js:27:33)
at C:\Users\Georg\source\repos\BykSupport\Byk.Support.Client\node_modules\ngx-translate-extract\dist\cli\tasks\extract.task.js:53:58
at Array.forEach ()
at C:\Users\Georg\source\repos\BykSupport\Byk.Support.Client\node_modules\ngx-translate-extract\dist\cli\tasks\extract.task.js:52:32
at Array.forEach ()
at C:\Users\Georg\source\repos\BykSupport\Byk.Support.Client\node_modules\ngx-translate-extract\dist\cli\tasks\extract.task.js:47:58
at Array.forEach ()
at ExtractTask._extract (C:\Users\Georg\source\repos\BykSupport\Byk.Support.Client\node_modules\ngx-translate-extract\dist\cli\tasks\extract.task.js:46:21)

My tsconfig.json looks like this:

{
"compileOnSave": false,
"compilerOptions": {
"baseUrl": "./",
"outDir": "./dist/out-tsc",
"forceConsistentCasingInFileNames": true,
"strict": true,
"noImplicitOverride": true,
"noPropertyAccessFromIndexSignature": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"sourceMap": true,
"declaration": false,
"downlevelIteration": true,
"experimentalDecorators": true,
"moduleResolution": "node",
"importHelpers": true,
"target": "ES2022",
"module": "ES2022",
"useDefineForClassFields": false,
"lib": [
"ES2022",
"dom"
]
},
"angularCompilerOptions": {
"enableI18nLegacyMessageIdFormat": false,
"strictInjectionParameters": true,
"strictInputAccessModifiers": true,
"strictTemplates": true
}
}

@michaelbromley
Copy link

This repo is unmaintained. An updated fork is here: https://github.com/vendure-ecommerce/ngx-translate-extract

For background see #246 (comment)

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

No branches or pull requests

2 participants