cancel
Showing results for 
Search instead for 
Did you mean: 

Spartacus Setup Issue

x1111111111
Explorer
2,163

Hybris Version : 1808

Recipe : b2b_acc

Shop URL :

 https://localhost:9002/yb2bacceleratorstorefront/?site=powertools&clear=true

Steps followed :

https://github.com/SAP/cloud-commerce-spartacus-storefront/blob/develop/docs/archived_installation_d...

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

View Entire Topic
rehan12
Explorer

Hi

  • If SAP Commerce Cloud installer doesn’t work, make sure there are no spaces in the path to the SAP Commerce Cloud folder.
  • If Spartacus starts or partially starts, check all CORS settings. For more information, see this help topic.

config.properties file

To use these settings, create a file named custom.properties inside the spartacussampledataaddon/resources/customconfig folder, and then add the following to the file