import { Button } from 'rsuite'; should be translated to require('rsuite/lib/Button/styles/themes/dark.less'); with .babelrc set to { "presets": [["rsuite", { "style": true, "theme": "dark" }]] }.
while this repo stated that the same code will be translated to require('rsuite/styles/button.less');
Hi, webpack is throwing me the Error: Can't resolve 'rsuite/lib/styles/button'.
I suppose this repo is somehow out of date, as the docs(https://rsuitejs.com/en/guide/modularized) stated:
import { Button } from 'rsuite';
should be translated torequire('rsuite/lib/Button/styles/themes/dark.less');
with .babelrc set to{ "presets": [["rsuite", { "style": true, "theme": "dark" }]] }
.while this repo stated that the same code will be translated to
require('rsuite/styles/button.less');
FIY: