ClickHouse / ClickHouse/click-ui

Icons do not work with clickui-bundled

Open
#607 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
135
Forks
33
Avg merge
2d 13h
Merged PRs (30d)
19

Description

I am trying to use the Icon component in the docs but it appears that something is not working with the bundled click-ui version.

A simple usage like:

```
import {Icon} from '@clickhouse/click-ui/bundled';

```

Results in

```
Cannot read properties of undefined (reading 'icon')
TypeError: Cannot read properties of undefined (reading 'icon')
at eval (eval at ./node_modules/@clickhouse/click-ui/dist/click-ui.bundled.es.js (http://localhost:3000/docs/main.js:1505:1), :3884:32)
at Je (eval at ./node_modules/@clickhouse/click-ui/dist/click-ui.bundled.es.js (http://localhost:3000/docs/main.js:1505:1), :1135:13)
at e.generateAndInjectStyles (eval at ./node_modules/@clickhouse/click-ui/dist/click-ui.bundled.es.js (http://localhost:3000/docs/main.js:1505:1), :1174:22)
at eval (eval at ./node_modules/@clickhouse/click-ui/dist/click-ui.bundled.es.js (http://localhost:3000/docs/main.js:1505:1), :1247:30)
at eval (eval at ./node_modules/@clickhouse/click-ui/dist/click-ui.bundled.es.js (http://localhost:3000/docs/main.js:1505:1), :1249:8)
at O2 (eval at ./node_modules/@clickhouse/click-ui/dist/click-ui.bundled.es.js (http://localhost:3000/docs/main.js:1505:1), :1253:6)
at renderWithHooks (eval at ./node_modules/react-dom/cjs/react-dom.development.js (http://localhost:3000/docs/main.js:364:1), :15486:18)
at updateForwardRef (eval at ./node_modules/react-dom/cjs/react-dom.development.js (http://localhost:3000/docs/main.js:364:1), :19240:20)
at beginWork (eval at ./node_modules/react-dom/cjs/react-dom.development.js (http://localhost:3000/docs/main.js:364:1), :21670:16)
at HTMLUnknownElement.callCallback (eval at ./node_modules/react-dom/cjs/react-dom.development.js (http://localhost:3000/docs/main.js:364:1), :4164:14)
```

Possibly related to https://github.com/ClickHouse/click-ui/issues/604

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.