Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Flyte console cannot be started for local development #5075

Closed
2 tasks done
MortalHappiness opened this issue Mar 19, 2024 · 2 comments · Fixed by flyteorg/flyteconsole#853
Closed
2 tasks done
Assignees
Labels
bug Something isn't working ui Admin console user interface

Comments

@MortalHappiness
Copy link
Member

Describe the bug

See the screenshot below.

Expected behavior

Flyte console can be built successfully for local development.

Additional context to reproduce

No response

Screenshots

image

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

  • Yes

Have you read the Code of Conduct?

  • Yes
@MortalHappiness MortalHappiness added bug Something isn't working untriaged This issues has not yet been looked at by the Maintainers labels Mar 19, 2024
@MortalHappiness
Copy link
Member Author

#take

Copy link

dosubot bot commented Mar 19, 2024

Hey @MortalHappiness, nice to see you around these parts again! How's it going?👋

Based on the error message you've shared, it seems like there's a TypeScript type checking issue in the fetch.ts file. Here are some steps you can take to resolve this:

  1. Ensure Prerequisites Are Installed: Run the script/setup_local_dev.sh script with the necessary environment variables set to "true". This includes ENSURE_K3D, ENSURE_KUBECTL, and ENSURE_HELM. This will ensure that k3d, kubectl, and helm are installed and configured correctly.

  2. Check TypeScript Version: Make sure you're using a compatible version of TypeScript for the Flyte console project. Incompatibilities between TypeScript versions can sometimes lead to type checking issues.

  3. Review TypeScript Configuration: Check the tsconfig.json file in the Flyte console project to ensure it is correctly configured. Pay special attention to the compiler options that might affect type checking, such as strict, noImplicitAny, strictNullChecks, and others.

  4. Isolate the Issue: Look into the fetch.ts file to understand the specific TypeScript type checking issue. It could be related to incorrect types, missing types, or perhaps a misuse of TypeScript features.

  5. Fix the TypeScript Issue:

    • If the issue is due to incorrect types, adjust the types accordingly.
    • If types are missing, you may need to install additional @types/ packages or declare custom types.
    • For more complex issues, consider consulting TypeScript documentation or seeking help from the TypeScript community.
  6. Build the Project: Once the TypeScript issue in the fetch.ts file is resolved, proceed with building the Flyte console. Use the build command specific to the project, often something like npm run build or yarn build.

  7. Test Locally: After building the console, test it locally to ensure that the fix worked and that there are no other issues.

If you encounter further issues or the above steps do not resolve the problem, please provide more detailed information about the error message and the TypeScript version you're using. This will help in providing a more accurate solution.

Sources

About Dosu

This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.

Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.

If you want to continue the conversation, start your reply with @dosu-bot.

MortalHappiness added a commit to MortalHappiness/flyteconsole that referenced this issue Mar 19, 2024
Resolves: flyteorg/flyte#5075
Signed-off-by: Chi-Sheng Liu <chishengliu@chishengliu.com>
MortalHappiness added a commit to MortalHappiness/flyteconsole that referenced this issue Mar 19, 2024
Resolves: flyteorg/flyte#5075
Signed-off-by: Chi-Sheng Liu <chishengliu@chishengliu.com>
@eapolinario eapolinario added ui Admin console user interface and removed untriaged This issues has not yet been looked at by the Maintainers labels Mar 21, 2024
@eapolinario eapolinario self-assigned this Mar 21, 2024
pingsutw pushed a commit to flyteorg/flyteconsole that referenced this issue Mar 27, 2024
Resolves: flyteorg/flyte#5075

Signed-off-by: Chi-Sheng Liu <chishengliu@chishengliu.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ui Admin console user interface
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants