-
Notifications
You must be signed in to change notification settings - Fork 12k
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
Path[1] argument must be of type string. Received undefined #28109
Comments
I know our library i18n story hasn't been very well fleshed out so I think this might just be a known issue (albeit with a bad error message). I couldn't find any explict docs on this, but #17140 implies library i18n isn't supported in the CLI. I took a quick look but found that "extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {
"buildTarget": "@wksp/my-lib:build"
}
}, (Side note: The error seems to be coming from this line. That said, there's probably an opportunity for at least a better error message here. If |
…braries The `extract-i18n` builder is only intended to be used with application projects. Closes angular#28109
…braries The `extract-i18n` builder is only intended to be used with application projects. Closes angular#28109
…braries The `extract-i18n` builder is only intended to be used with application projects. Closes angular#28109
…braries The `extract-i18n` builder is only intended to be used with application projects. Closes angular#28109
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Command
extract-i18n
Is this a regression?
The previous version in which this bug was not present was
No response
Description
I have been trying to export the i18n information from a part of our code, previously this code was in our project as components.
Now I want to create a library out of it and the actual building and using it in the project as a package works but when exporting with
ng extract-i18n --project <projectNameHere>
I keep getting the error from the title:In debugging the offending line and file I've found that the actual object used in this process has the
path
variable but it's an object.Changing this to an array or just a string does not resolve the issue and even breaks the actual build of the library.
I've reproduced this in a brand new project and still the same error.
Minimal Reproduction
Create a new workspace, add a library and try to extract localization info
Exception or Error
Your Environment
Anything else relevant?
No response
The text was updated successfully, but these errors were encountered: