area17 / blast

Storybook for Laravel Blade 🚀

Home Page:https://dev.to/area17/getting-started-with-blast-storybook-for-laravel-blade-c5c

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can not use . in args

vladninja opened this issue · comments

Hi. I am not pretty sure about is it a Storybook or Blast bug, but when I am trying to use dot (.) in args name it throw an error:

You may need an additional loader to handle the result of these loaders.

[0] File was processed with these loaders:
[0]  * ./node_modules/@storybook/server/dist/cjs/server/loader.js
[0] You may need an additional loader to handle the result of these loaders.
[0] |     ],
[0] |     translations: {
[0] >       prefix.key1: "Text1",
[0] |       prefix.key2: "Text2",
[0] |       prefix.key3: "Text3",
[0]     at handleParseError (/var/www/html/vendor/area17/blast/node_modules/webpack/lib/NormalModule.js:941:19)
[0]     at /var/www/html/vendor/area17/blast/node_modules/webpack/lib/NormalModule.js:1045:5
[0]     at processResult (/var/www/html/vendor/area17/blast/node_modules/webpack/lib/NormalModule.js:763:11)
[0]     at /var/www/html/vendor/area17/blast/node_modules/webpack/lib/NormalModule.js:827:5
[0]     at /var/www/html/vendor/area17/blast/node_modules/loader-runner/lib/LoaderRunner.js:406:3
[0]     at iterateNormalLoaders (/var/www/html/vendor/area17/blast/node_modules/loader-runner/lib/LoaderRunner.js:232:10)

In a data folder, it's represented as:

return [
    'translations' => [
        'args' => [
            "prefix.key1" => "Text1",
            "prefix.key2" => "Text2",
            "prefix.key3" => "Text3",
        ]
    ]
];