Closed Jeannette0217 closed 2 years ago
The error you've listed isn't with TSDX, but with Storybook. Your tsdx build
seems to run fine and you seem to have configured that fine (although your package.json
seems to have various devDeps and deps mixed up with each other -- but not a TSDX issue and not a support forum).
This is TSDX's issues page, not Storybook's, and this is not a support forum. You also removed the issue template while posting here, but it is there for a reason.
I can give you a quick answer though, you need to configure Storybook to read your LESS files. Here is their documentation page for PostCSS integration
This is Button component to introduce less files
This is less file:
This is the
tsdx.config.js
file for the root directory:This is
package.json
fileI follow the rollup-plugin-postcss support configuration, but still have not been able to identify less syntax, tried many methods can, do not know what the problem. I am stuck with this error, please help me to check what is the reason, Thanks.![image](https://user-images.githubusercontent.com/52516430/153754722-8b24b99b-b729-419f-a568-30ecc7d20a3b.png)
How to support less, please provide the following configuration methods