-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
devMode in compileUiExtension throws error on next version #1794
Comments
I've managed to get the ui part working by:
The app will now run successfully on port 4200. |
Pasting from Slack conversation to make it public: Thanks for taking the time to try to solve this. In general, running on port 4200 doesn't work due to the way that the Admin UI is trying to infer the api url. It defaults to auto which just uses the browser url to guess. You should be able to explicitly set AdminUiPlugin.init({
//..
adminUiConfig: {
apiHost: 'http://localhost/'
apiPort: '3000'
}
}), |
Just to sum up for a temporary solution:
|
To make this a permanent solution, the |
Same problem. Not sure if still needed, but these are the dependencies installed in my project after removing yarn.lock yarn list --pattern @angular
yarn list v1.22.17
├─ @angular-devkit/architect@0.1302.6
│ └─ @angular-devkit/core@13.2.6
├─ @angular-devkit/build-angular@13.2.6
│ └─ @angular-devkit/core@13.2.6
├─ @angular-devkit/build-webpack@0.1302.6
├─ @angular-devkit/core@13.2.4
├─ @angular-devkit/schematics@13.2.4
├─ @angular/animations@13.2.3
├─ @angular/cdk@13.2.3
├─ @angular/cli@13.2.4
│ └─ @angular-devkit/architect@0.1302.4
├─ @angular/common@13.2.3
├─ @angular/compiler-cli@13.2.3
├─ @angular/compiler@13.2.3
├─ @angular/core@13.2.3
├─ @angular/forms@13.2.3
├─ @angular/language-service@13.2.3
├─ @angular/platform-browser-dynamic@13.2.3
├─ @angular/platform-browser@13.2.3
└─ @angular/router@13.2.3 yarn list --pattern @vendure
yarn list v1.22.17
├─ @vendure/admin-ui-plugin@2.0.0-next.27
├─ @vendure/admin-ui@2.0.0-next.27
├─ @vendure/common@2.0.0-next.27
├─ @vendure/core@2.0.0-next.27
├─ @vendure/testing@2.0.0-next.27
└─ @vendure/ui-devkit@2.0.0-next.27 |
Describe the bug

When enabling devMode in compileUiExtension, it will throw an error saying:
unknown argument --base-path
Environment (please complete the following information):
Additional context
The issue might be because the option is deprecated and should be set in angular.json instead:
https://stackoverflow.com/questions/71604562/unknown-option-base-href-angular-13-ng-serve
The text was updated successfully, but these errors were encountered: