Skip to content

Commit 2ef11c8

Browse files
authored
Corrected the preview template path
1 parent 8c0ca89 commit 2ef11c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Command/StorybookInitCommand.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
6565

6666
$this->io->listing([
6767
'Review your <info>package.json</info> and install new dependencies with <info>npm install</info>',
68-
'Review your <info>templates/bundles/StorybookBundle/preview.html.twig</info> and adjust your importmap call',
68+
'Review your <info>templates/bundles/@StorybookBundle/preview.html.twig</info> and adjust your importmap call',
6969
'Review your <info>.storybook/main.ts</info> configuration and adjust your Symfony server host',
7070
'Run your Symfony server',
7171
'Run <info>npm run storybook</info> to start the Storybook development server',
@@ -222,7 +222,7 @@ private function setupPreview(): void
222222
{
223223
$this->io->note('Creating preview template');
224224

225-
$previewPath = Path::join($this->projectDir, 'templates', 'bundles', 'StorybookBundle', 'preview.html.twig');
225+
$previewPath = Path::join($this->projectDir, 'templates', 'bundles', '@StorybookBundle', 'preview.html.twig');
226226

227227
$content = "{% extends '@!Storybook/preview.html.twig' %}\n";
228228
if ($this->isAssetMapperInstalled()) {

0 commit comments

Comments
 (0)