Issues with sdc version

Created on 22 May 2023, over 1 year ago
Updated 31 July 2023, over 1 year ago

I'm using the stack for a while and first of all, this is great work and getting this into core impressed me even more.
On a new project I tried using the sdc version and stumbled upon some api regressions I'd like to address and fix in this issue.

1. Theme based components are now possible, but are not respected by cl_server
2. Endpoint is not returning the right render array

Thats it for now. I managed to get it all working with the following modules and versions, if someone is asking how to get this thing working:

- drupal/cl_server:2.x-dev@dev (and this patch obviously)
- drupal/sdc:^2.0@alpha

Caution when using Storybook, the new Version (7) is not very compatible, so here my package.json:

{
  "name": "YOUR_PROJECT",
  "packageManager": "yarn@3.5.1",
  "devDependencies": {
    "@babel/core": "^7.19.6",
    "@lullabot/storybook-drupal-addon": "^1.0.26",
    "@storybook/addon-actions": "^6.5.13",
    "@storybook/addon-essentials": "^6.5.13",
    "@storybook/addon-links": "^6.5.13",
    "@storybook/builder-webpack5": "^6.5.13",
    "@storybook/manager-webpack5": "^6.5.13",
    "@storybook/server": "^6.5.13"
  },
  "scripts": {
    "storybook": "start-storybook -p 6006",
    "build-storybook": "build-storybook"
  }
}

A good starting point would be taking one of the components from the tests - components provided by cl_devel generator are not working out-of-the-box right now.

🐛 Bug report
Status

Closed: duplicate

Version

2.0

Component

Code

Created by

🇩🇪Germany Hydra

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024