vuestorefront/storyblok

Project does not start with Spryker as backend platform

Closed this issue · 0 comments

Summary

The Vue Storefront (v2) project with Spryker as the backend platform will not start up and show an error on yarn dev once Storyblok is added as shown in the installation guide.

Steps to Reproduce

  1. Create a new Vue Storefront project by using VSF CLI
  2. Choose Spryker as backend platform
  3. Once project is created run yarn install
  4. Add Storyblok to the project as described in installation guide
  5. Run yarn dev

Expected Result

Project starts up successfully

Actual Result

Project start-up produces following error:


  if (options?.jsBridge) {
  ^
  
  SyntaxError: Invalid or unexpected token
  at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)


   ╭──────────────────────────────────────────────╮
   │                                              │
   │   ✖ Nuxt Fatal Error                         │
   │                                              │
   │   SyntaxError: Invalid or unexpected token   │
   │                                              │
   ╰──────────────────────────────────────────────╯

error Command failed with exit code 1.

image