-
Notifications
You must be signed in to change notification settings - Fork 12k
Ng build error with Unknown argument: configuration
#23385
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
Comments
You can specify the configuration as part of the target specifier, in the format mentioned in https://angular.io/cli/run Ex:
|
It's working with |
I was having the same problem. It seemed like all arguments were not working anymore ( |
On a local environment it should be a good fix but on CI it's using the local |
Can you point to where this is mentioned? |
Here https://github.com/angular/angular-cli/releases/tag/14.0.0, it's saying
|
That refers to commands which had |
Yes but i did tried with |
These command have different syntaxes as described in the documentation:
More about these commands in the below links |
It's new, i guess, because before the update from 13 to 14 it was working well. |
I tried this in version v13 and it does seem that This does however to seem to be conflicting with the intend of the run command that architect target specifier is provided as positional argument including the configuration name which is also inlined with what's documented. In some cases it can also be hard to follow which configuration will be used Ex:
In the above the development configuration will super seed the production configuration. |
We discussed this during yesterday triage meeting and we decided the we should include this as a breaking change in the release notes and also add a more actionable error message. |
…ation` with `ng run` With this commit we issue a more actionable error message when using the unsupported `--configuration` option with the`ng run` command. Closes angular#23385
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. |
🐞 Bug report
Command (mark with an
x
)Is this a regression?
Yes, the previous version in which this bug was not present was: 13.xDescription
When i launch the command
yarn ng run loyalty-v3:build --configuration=production
on GitlabCI it's not working with errorError: Unknown argument: configuration
. But on my localhost environment it's working :/🔬 Minimal Reproduction
Launch command yarn ng run loyalty-v3:build --configuration=production on GitlabCI.
🔥 Exception or Error
🌍 Your Environment
I launched
yarn ng version
on the CI and this is the output:I launched
yarn ng version
on my localhost and this is the output:Anything else relevant?
I'm using the builder custom webpack but I used the default buidler from angular and i have the same error. I submitted an Issue on the other repo too here.
The text was updated successfully, but these errors were encountered: