Bug(transloco-scoped-libs): transloco-scope-libs script failing
See original GitHub issueIs there an existing issue for this?
- I have searched the existing issues
Which Transloco package(s) are the source of the bug?
Scoped Libs
Is this a regression?
Yes
Current behavior
Since upgrading to v3.0.2 / v3.0.0 of transloco and transloco-scoped-libs respectively, when I execute the transloco-scoped-libs command, I get this error:
> iko@13.11.3 transloco:extract-scoped-libs /Users/crash/git/iko-travel-spa
> transloco-scoped-libs
/Users/crash/git/iko-travel-spa/node_modules/@ngneat/transloco-scoped-libs/src/index.js:11
const { watch, ['skip-gitignore']: skipGitIgnoreUpdate } = command_line_args_1.default(optionDefinitions);
^
TypeError: command_line_args_1.default is not a function
at Object.<anonymous> (/Users/crash/git/iko-travel-spa/node_modules/@ngneat/transloco-scoped-libs/src/index.js:11:87)
at Module._compile (internal/modules/cjs/loader.js:999:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
at Module.load (internal/modules/cjs/loader.js:863:32)
at Function.Module._load (internal/modules/cjs/loader.js:708:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12)
at internal/main/run_main_module.js:17:47
Expected behavior
It should be copying the resources to its respective destinations as it did in the versions prior to 3.x.
Please provide a link to a minimal reproduction of the bug
https://github.com/bjornharvold/transloco-issue-515
Transloco Config
{
provide: TRANSLOCO_CONFIG,
useValue: {
availableLangs: [{ id: 'en', label: 'English' }],
reRenderOnLangChange: false,
defaultLang: 'en',
fallbackLang: 'en',
prodMode: environment.production,
scopeStrategy: 'shared'
} as TranslocoConfig
}
Please provide the environment you discovered this bug in
Transloco: 3.0.2
Angular: 12.2.9
Node: 14.5
Package Manager: yarn
OS: Mac OS
Browser
NA
Additional context
No response
I would like to make a pull request for this bug
No
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
Scoped Library Extractor | Transloco Angular i18n
We can't access the application's public directory; Webpack dynamic imports don't work with libraries. The only option we've got is to load the...
Read more >ngneat-transloco/lobby - Gitter
Having an issue with scopes. The "mainApp" has "pages" - each page module has a scope provider. Now there is also a shared...
Read more >@ngneat/transloco-scoped-libs - npm
Start using @ngneat/transloco-scoped-libs in your project by running ... TypeScript icon, indicating that this package has built-in type ...
Read more >Newest 'transloco' Questions - Stack Overflow
With reference to the structure explained in https://ngneat.github.io/transloco/docs/tools/scope-lib-extractor, if we have two apps app (built on core ...
Read more >@ngneat/transloco | Yarn - Package Manager
This file was generated using @jscutlery/semver. 4.2.1 (2022-12-10). Bug Fixes. transloco: replace environment with isDveMode for v15 (e4bc6c91) ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi @shaharkazaz
v3.0.1 not working
Here my transloco.config.js
This is the error I get when running the command:
As you can see above, I have done that so I don’t know what it’s complaining about.
@bjornharvold several issues, also related to the transloco-utils, you are welcome to look at the latest commits.