weiran-zsd / dts-cli

Zero-config CLI for TypeScript package development
MIT License
442 stars 23 forks source link

Crash storybook when uses Sass files #174

Closed jadelmag closed 1 year ago

jadelmag commented 2 years ago
Sorry, is first time that use dts-cli, but when I create a component with its associated scss file it show me this:

DeprecationWarning: Default PostCSS plugins are deprecated. When switching to '@storybook/addon-postcss',
you will need to add your own plugins, such as 'postcss-flexbugs-fixes' and 'autoprefixer'.

See https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#deprecated-default-postcss-plugins for details.

You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
> .xu-input {
|     display: flex;
| }
    at handleParseError (C:\Users\Javi\Documents\react-projects\reactlibrary\node_modules\webpack\lib\NormalModule.js:469:19)
....

error

aladdin-add commented 1 year ago

you need to check out storybook docs to see how to setup sass config.