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(S1): @apps/game-builder 빌드 시 @packages/ui 내 모듈을 찾을 수 없음 #87

Closed
2 tasks done
dusunax opened this issue Aug 14, 2024 · 2 comments
Closed
2 tasks done
Assignees
Labels
bug Something isn't working

Comments

@dusunax
Copy link
Contributor

dusunax commented Aug 14, 2024

image

체크포인트

  • 경로 별칭
  • 모노레포
@dusunax dusunax added the bug Something isn't working label Aug 14, 2024
@dusunax dusunax changed the title chore(S1): @apps/game-builder 빌드 시 @packages/ui 내 모듈을 찾을 수 없음 fix(S1): @apps/game-builder 빌드 시 @packages/ui 내 모듈을 찾을 수 없음 Aug 14, 2024
@dusunax dusunax self-assigned this Aug 14, 2024
@dusunax
Copy link
Contributor Author

dusunax commented Aug 25, 2024

모노레포 관련 오류

  • 로컬 root에서 turbo build하는 경우: 오류 없음
  • 로컬 root에서 turbo build --filter=game-builder로 특정 레포를 빌드하려하는 경우

turbo build --filter=game-builder

image

  • 또는 game-builder 레포에서 turbo run build
    image

pnpm i -S @repo/ui

  • root에서 의존성 x
    image

  • 각 레포에서 의존
    image

  • package.json 확인 => packages는 찾을 수 있는 것으로 보임

    • pnpm-workspace.yaml 에서 packages 설정되어 있음
    packages:
      - "apps/*"
      - "packages/*"

레퍼런스

https://stackoverflow.com/questions/70343215/eslint-no-extraneous-dependencies-error-with-npm-workspaces

  • 린트 오류 ?!
    • (1)린트 무시
    • (2)import/resolver
      image

Turborepo

https://turbo.build/repo/docs/crafting-your-repository/structuring-a-repository

https://turbo.build/repo/docs/crafting-your-repository/creating-an-internal-package

Typescript path alias & monorepo

@dusunax
Copy link
Contributor Author

dusunax commented Aug 26, 2024

결론

  1. 모노레포 관련 path 관련 이슈이다.
  2. init부터 다시 진행하면서 확인해보자.
  3. 240825 release 브랜치에서 packages/ui 레포지토리를 game-builder 내에 복사해서 배포
  • 작업/배포 일정이 지연되지 않도록 3으로 진행하되, 가능한 타이밍에 2번을 진행한다.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant