flyteorg / flyteorg/flyte

[BUG] Can't launch storybook in Flyteconsole

Open
#6,497 1 comment 0 reactions 0 assignees View on GitHub
bug untriaged
Dominant language
Go
Stars
7.5k
Forks
886
Avg merge
1d 12h
Merged PRs (30d)
120

Description

### Flyte & Flytekit version

flyteconsole v1.20.0

### Describe the bug

Following the instructions from https://www.union.ai/docs/flyte/community/contributing-code/ I was able to run `yarn install` and see my local version of the UI but I was unable to run storybook.

```
❯ yarn storybook

/Users/MY_ACCOUNT/Developer/flyteconsole/node_modules/source-map-resolve/lib/decode-uri-component.js:1
var decodeUriComponent = require("decode-uri-component")
^

Error [ERR_REQUIRE_ESM]: require() of ES Module /Users/MY_ACCOUNT/Developer/flyteconsole/node_modules/decode-uri-component/index.js from /Users/MY_ACCOUNT/Developer/flyteconsole/node_modules/source-map-resolve/lib/decode-uri-component.js not supported.
Instead change the require of index.js in /Users/MY_ACCOUNT/Developer/flyteconsole/node_modules/source-map-resolve/lib/decode-uri-component.js to a dynamic import() which is available in all CommonJS modules.
```

### Expected behavior

Per markdown,

"You can run storybook with `yarn run storybook`, and view the stories at http://localhost:9001."

https://github.com/flyteorg/flyteconsole/blob/794e82ad4206b657cdc49c3e874917052bb122b0/CONTRIBUTING.md?plain=1#L58

### Additional context to reproduce

_No response_

### Screenshots

_No response_

### Are you sure this issue hasn't been raised already?

- [x] Yes

### Have you read the Code of Conduct?

- [x] Yes

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.