Skip to content

Commit 61a0873

Browse files
authored
docs(theming) list semantic-ui-less in dependencies (#4297)
With current documentation, compile will fail: ``` Failed to compile. src/index.tsx Line 6:1: 'semantic-ui-less' should be listed in the project's dependencies, not devDependencies import/no-extraneous-dependencies ```
1 parent 66591fb commit 61a0873

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docs/src/pages/Theming.mdx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,13 @@ yarn remove semantic-ui semantic-ui-css
8383
Create React App does not support LESS out of the box; we propose to use [`@craco/craco`](https://www.npmjs.com/package/@craco/craco) to add its support and avoid `eject`. You have to install required packages:
8484

8585
```bash
86-
npm install @craco/craco @semantic-ui-react/craco-less semantic-ui-less --save-dev
86+
npm install @craco/craco @semantic-ui-react/craco-less --save-dev
87+
npm install semantic-ui-less --save
8788
```
8889

8990
```bash
90-
yarn add @craco/craco @semantic-ui-react/craco-less semantic-ui-less --dev
91+
yarn add @craco/craco @semantic-ui-react/craco-less --dev
92+
yarn add semantic-ui-less
9193
```
9294

9395
And then update your `package.json` and create `craco.config.js`:

0 commit comments

Comments
 (0)