Embedded or included twig components with Nested components are not loading in organisms or pages
Add the following namespaces with paths for Drupal in the vartheme_bs5.info.yml
file
components:
namespaces:
vartheme_bs5: src/components
atoms: src/components/atoms
molecules: src/components/molecules
organisms: src/components/organisms
templates: src/components/templates
pages: src/components/pages
Add the following namespaces with paths for Storybook, Webpack, and Mix in the webpack.config.js
file
// Twig
config.module.rules.push({
test: /\.(html.twig|twig)$/,
use: [
{
loader: 'twig-loader',
options: {
twigOptions: {
namespaces: {
vartheme_bs5: path.resolve(__dirname, '../', 'src/components'),
atoms: path.resolve(__dirname, '../', 'src/components/atoms'),
molecules: path.resolve(__dirname, '../', 'src/components/molecules'),
organisms: path.resolve(__dirname, '../', 'src/components/organisms'),
templates: path.resolve(__dirname, '../', 'src/components/templates'),
pages: path.resolve(__dirname, '../', 'src/components/pages'),
},
},
},
},
],
});
Update all Components Twig files and Drupal template files
Fixed
2.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.