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

is not a directory error #158

Closed
helderscrolls opened this issue Jan 24, 2020 · 1 comment
Closed

is not a directory error #158

helderscrolls opened this issue Jan 24, 2020 · 1 comment
Labels

Comments

@helderscrolls
Copy link

helderscrolls commented Jan 24, 2020

> ng xi18n lifeaz-website --i18n-format xlf --output-path i18n --i18n-locale fr && ng run lifeaz-website:xliffmerge

Browserslist: caniuse-lite is outdated. Please run next command `npm update`
xliffmerge rc=-1
ERROR: srcDir "/Users/helder/Development/lifeaz-website/src/i18n" is not a directory
ERROR: genDir "/Users/helder/Development/lifeaz-website/src/i18n" is not a directory
ERROR: i18nFile "/Users/helder/Development/lifeaz-website/src/i18n/messages.xlf" is not readable

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! lifeaz-website@0.0.0 extract-i18n: `ng xi18n lifeaz-website --i18n-format xlf --output-path i18n --i18n-locale fr && ng run lifeaz-website:xliffmerge`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the lifeaz-website@0.0.0 extract-i18n script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/helder/.npm/_logs/2020-01-24T10_05_12_527Z-debug.log

Each time I try to run npm run extract-i18n I get this error I've tried reinstalling the package multiple times and still get this error. I'm running Angular 8

@helderscrolls
Copy link
Author

replacing the script:
"extract-i18n": "ng xi18n sampleapp --i18n-format xlf --output-path i18n --i18n-locale de && ng run sampleapp:xliffmerge"
to:

"extract-i18n": "ng xi18n lifeaz-website --i18n-format xlf --output-path src/i18n --i18n-locale fr && ng run lifeaz-website:xliffmerge",

Simply replacing the --output-path from i18n to src/i18n fixed everything

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

2 participants