Skip to content

fix(docs): escape TS JSX syntax error in get-started code block - #538

Open
hussainjamal760 wants to merge 1 commit into
containers:mainfrom
hussainjamal760:fix/typescript-syntax-error
Open

fix(docs): escape TS JSX syntax error in get-started code block#538
hussainjamal760 wants to merge 1 commit into
containers:mainfrom
hussainjamal760:fix/typescript-syntax-error

Conversation

@hussainjamal760

Copy link
Copy Markdown

Resolves #537

What does this PR do?

This PR fixes a critical TypeScript parsing error (TS1382) inside src/pages/get-started.tsx that was causing yarn typecheck and CI builds to fail.

The issue was caused by an unescaped right angle bracket (>) inside the podman ps output example in a JSX <CodeBlock>. The parser misinterpreted 0.0.0.0:8080->80/tcp as an unclosed HTML/JSX tag.

Key Fixes:

  • Escaped the > character by converting it into a JSX string literal expression: 0.0.0.0:8080-{'>'}80/tcp.

How to test

  1. Checkout the branch locally.
  2. Run yarn typecheck in your terminal.
  3. Verify that the command now passes successfully without throwing the TS1382 error.
  4. Run yarn start, navigate to http://localhost:3000/get-started, and verify that the podman ps code block displays 0.0.0.0:8080->80/tcp correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: Breaking TypeScript Syntax Error (TS1382) on Get Started Page

1 participant