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

Fix go-next typecheck and add build CI #2318

Merged
merged 6 commits into from
Jul 20, 2024
Merged

Fix go-next typecheck and add build CI #2318

merged 6 commits into from
Jul 20, 2024

Conversation

frzyc
Copy link
Owner

@frzyc frzyc commented Jul 16, 2024

Describe your changes

Trying to address the fact that the go-next project has somewhat differing tsconfig, which makes existing libs unbuildable.

  • Downgrade to "@types/react": "18.2.68", following advice from https://github.com/DefinitelyTyped/DefinitelyTyped/discussions/69389 to address the build issue:
    image
  • In Vite, an image is imported as a string, but in nextjs, its imported as StaticImageData. This makes type ducking quite weird.
  • Add build go-next to the CI to ensure further buildability once type issues are addressed.

Issue or discord link

Testing/validation

Checklist before requesting a review (leave this PR as draft if any part of this list is not done.)

  • I have commented my code in hard-to understand areas.
  • I have made corresponding changes to README or wiki.
  • For front-end changes, I have updated the corresponding English translations.
  • I have run yarn run mini-ci locally to validate format and lint.
  • If I have added a new library or app, I have updated the deployment scripts to ignore changes as needed

@frzyc frzyc added the go-next GO with NextJS and backend label Jul 16, 2024
Copy link
Contributor

github-actions bot commented Jul 16, 2024

[sr-frontend] [Tue Jul 16 12:26:26 UTC 2024] - Deployed c95bfc8 to https://genshin-optimizer-prs.github.io/pr/2318/sr-frontend (Takes 3-5 minutes after this completes to be available)

[frontend] [Tue Jul 16 12:26:47 UTC 2024] - Deployed c95bfc8 to https://genshin-optimizer-prs.github.io/pr/2318/frontend (Takes 3-5 minutes after this completes to be available)

[sr-frontend] [Wed Jul 17 09:59:14 UTC 2024] - Deployed a8e2eb2 to https://genshin-optimizer-prs.github.io/pr/2318/sr-frontend (Takes 3-5 minutes after this completes to be available)

[frontend] [Wed Jul 17 09:59:23 UTC 2024] - Deployed a8e2eb2 to https://genshin-optimizer-prs.github.io/pr/2318/frontend (Takes 3-5 minutes after this completes to be available)

[sr-frontend] [Sat Jul 20 11:47:27 UTC 2024] - Deployed 0d9212c to https://genshin-optimizer-prs.github.io/pr/2318/sr-frontend (Takes 3-5 minutes after this completes to be available)

[frontend] [Sat Jul 20 11:47:47 UTC 2024] - Deployed 0d9212c to https://genshin-optimizer-prs.github.io/pr/2318/frontend (Takes 3-5 minutes after this completes to be available)

[frontend] [Sat Jul 20 12:24:24 UTC 2024] - Deployed e1ec998 to https://genshin-optimizer-prs.github.io/pr/2318/frontend (Takes 3-5 minutes after this completes to be available)

[sr-frontend] [Sat Jul 20 12:24:38 UTC 2024] - Deployed e1ec998 to https://genshin-optimizer-prs.github.io/pr/2318/sr-frontend (Takes 3-5 minutes after this completes to be available)

[sr-frontend] [Sat Jul 20 12:47:30 UTC 2024] - Deployed b0137f4 to https://genshin-optimizer-prs.github.io/pr/2318/sr-frontend (Takes 3-5 minutes after this completes to be available)

[frontend] [Sat Jul 20 12:47:41 UTC 2024] - Deployed b0137f4 to https://genshin-optimizer-prs.github.io/pr/2318/frontend (Takes 3-5 minutes after this completes to be available)

[sr-frontend] [Sat Jul 20 14:30:21 UTC 2024] - Deployed 9403278 to https://genshin-optimizer-prs.github.io/pr/2318/sr-frontend (Takes 3-5 minutes after this completes to be available)

[frontend] [Sat Jul 20 14:30:50 UTC 2024] - Deployed 9403278 to https://genshin-optimizer-prs.github.io/pr/2318/frontend (Takes 3-5 minutes after this completes to be available)

[Sat Jul 20 16:10:53 UTC 2024] - Deleted deployment

@frzyc frzyc changed the title wip: fix go-next types for build Fix go-next types for build Jul 20, 2024
@frzyc frzyc changed the title Fix go-next types for build Fix go-next typecheck and add build CI Jul 20, 2024
@frzyc frzyc marked this pull request as ready for review July 20, 2024 14:35
@frzyc frzyc requested a review from nguyentvan7 July 20, 2024 14:35
- 'apps/sr-frontend-e2e/**'
- 'libs/gi/frontend-gql/**'
- 'libs/gi/prisma-schema/**'
- 'libs/gi/ui-next/**'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why ignore ui-next?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

its from the deprecated stack,

yarn run nx run ${{inputs.frontend_name}}:build:production
- name: Build gi-frontend
if: inputs.frontend_name == 'gi-frontend'
run: yarn nx run gi-frontend:next:build
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cant you just override build in gi-frontend project.json to call next:build?

Copy link
Owner Author

@frzyc frzyc Jul 20, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i had trouble getting the build:production to work, this is mostly a bandaid anyways, will likely come back to this once we have go-next deployments

@frzyc frzyc merged commit d9431c4 into master Jul 20, 2024
8 checks passed
@frzyc frzyc deleted the go_next_type_fix branch July 20, 2024 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
go-next GO with NextJS and backend
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants