on 2019 Aug 23 2:26 PM
Hybris Version : 1808
Recipe : b2b_acc
Shop URL :
https://localhost:9002/yb2bacceleratorstorefront/?site=powertools&clear=true
Steps followed :
Creating a New Angular Application
ng new storefrontpwa --style=scss
Adding Peer Dependencies to the Storefront
package.json
"@angular/pwa": "^0.6.8",
"@angular/service-worker": "^6.0.0",
"@ng-bootstrap/ng-bootstrap": "^3.2.2",
"@ng-select/ng-select": "^2.9.1",
"@ngrx/effects": "^8.0.0",
"@ngrx/router-store": "^8.0.0",
"@ngrx/store": "^8.0.0",
"bootstrap": "^4.1.3",
Adding the Storefront Dependencies
npm install @spartacus/core
npm install @spartacus/storefront
npm install @spartacus/styles
Importing the Storefront Module into Your Application
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';
import { StorefrontModule } from '@spartacus/storefront';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,StorefrontModule.withConfig({
server: {
baseUrl: 'https://localhost:9002'
}
})
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
Configuring the Storefront
<cx-storefront>SAP COMMERCE...</cx-storefront>
App URL : http://localhost:4200/
CONSOLE ERROR :
Not sure what i have missed.Please suggest how should i resolve this
Request clarification before answering.
Hi
To use these settings, create a file named custom.properties
inside the spartacussampledataaddon/resources/customconfig
folder, and then add the following to the file
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
8 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.