Unexpected 'Compiling RuleSet failed: Properties query are unknown' error with Vue 2 in a Laravel project
See original GitHub issueDescribe the bug
After I ran npx sb init inside of my Laravel project (which uses Vue 2), running npm run storybook produces this error:
ERR! Error: Compiling RuleSet failed: Properties query are unknown (at clonedRuleSet-11[0].rules[0]: [object Object])
ERR! at RuleSetCompiler.error (/Users/danielbachhuber/projects/cedar/node_modules/webpack/lib/rules/RuleSetCompiler.js:373:10)
ERR! at RuleSetCompiler.compileRule (/Users/danielbachhuber/projects/cedar/node_modules/webpack/lib/rules/RuleSetCompiler.js:196:15)
ERR! at /Users/danielbachhuber/projects/cedar/node_modules/webpack/lib/rules/RuleSetCompiler.js:154:9
ERR! at Array.map (<anonymous>)
ERR! at RuleSetCompiler.compileRules (/Users/danielbachhuber/projects/cedar/node_modules/webpack/lib/rules/RuleSetCompiler.js:153:16)
ERR! at RuleSetCompiler.compileRule (/Users/danielbachhuber/projects/cedar/node_modules/webpack/lib/rules/RuleSetCompiler.js:184:30)
ERR! at /Users/danielbachhuber/projects/cedar/node_modules/webpack/lib/rules/RuleSetCompiler.js:154:9
ERR! at Array.map (<anonymous>)
ERR! at RuleSetCompiler.compileRules (/Users/danielbachhuber/projects/cedar/node_modules/webpack/lib/rules/RuleSetCompiler.js:153:16)
ERR! at cloneRule (/Users/danielbachhuber/projects/cedar/node_modules/vue-loader/lib/plugin-webpack5.js:144:33)
ERR! at /Users/danielbachhuber/projects/cedar/node_modules/vue-loader/lib/plugin-webpack5.js:111:25
ERR! at Array.map (<anonymous>)
ERR! at VueLoaderPlugin.apply (/Users/danielbachhuber/projects/cedar/node_modules/vue-loader/lib/plugin-webpack5.js:111:8)
ERR! at webpack (/Users/danielbachhuber/projects/cedar/node_modules/@storybook/core/node_modules/webpack/lib/webpack.js:51:13)
ERR! at startPreview (/Users/danielbachhuber/projects/cedar/node_modules/@storybook/core/dist/server/dev-server.js:420:39)
ERR! at async Promise.all (index 0)
Here’s my package.json https://gist.github.com/danielbachhuber/667f6717d299b23b54bb137aa77e6161
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Properties query are unknown' error with Vue 2 in a Laravel ...
Describe the bug. After I ran npx sb init inside of my Laravel project (which uses Vue 2), running npm run storybook produces...
Read more >webpack-cli Error: Compiling RuleSet failed - Stack Overflow
The problem seems to be vue-style-loader related; commenting out css section of webpack.config.js, I've got different and much more clean error ...
Read more >Webpack has been initialized using a configuration object
I just install a new laravel project ( laravel and PHP 8) laravel new laravue Then I ... configuration.module.rules[10] has an unknown property...
Read more >Static Application Security Testing (SAST) - GitLab Docs
On failure, the analyzer outputs an exit code. Use cases. Your code has a potentially dangerous attribute in a class, or unsafe code...
Read more >Error Handling - Laravel - The PHP Framework For Web Artisans
Introduction. When you start a new Laravel project, error and exception handling is already configured for you. The App\Exceptions\Handler class is ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@pocka Works great, thank you!
@danielbachhuber A quick search shows some webpack5 users facing similar errors. ~Probably no
iframe.htmlonbuild-storybookis also due to the same reason (an incompatiblehtml-webpack-pluginversion).~ UPDATE: You should use a local HTTP server to check the output ofbuild-storybook. https://github.com/storybookjs/storybook/issues/13332 https://github.com/storybookjs/storybook/issues/14273I think this comment could help you.