Skip to content
This repository was archived by the owner on Mar 1, 2024. It is now read-only.

Fix for build-all script dependencies#453

Merged
mcottontensor merged 4 commits intoEpicGames:masterfrom
kroecks:master
Jan 24, 2024
Merged

Fix for build-all script dependencies#453
mcottontensor merged 4 commits intoEpicGames:masterfrom
kroecks:master

Conversation

@kroecks
Copy link
Copy Markdown
Contributor

@kroecks kroecks commented Dec 13, 2023

Relevant components:

  • Signalling server
  • Frontend library
  • Frontend UI library
  • Matchmaker
  • Platform scripts
  • SFU

Problem statement:

Fix for "build-all" script in the typescript implementation, where a second build will fail for seemingly invalid dependencies.
#183

If you perform the steps to build as laid out in the readme they go as follows:
Start by deleting every "node_modules" directory to start fresh

cd ../Frontend/library
npm install
npm run build

cd ../Frontend/ui-library
npm install
npm run build-all

cd ../Frontent/implementations/typescript
npm install
npm run build-all

If this is your first time running, it may succeed. If you run "build-all" on the typescript package a second time is when it fails. The failure is not obvious, other than saying "cannot set value on null" or something to that effect.

If you look at the "build-all" scripts referenced above, both ui-library and typescript perform an npm link on the library package, and I believe that is the cause of the issue. Simply moving the link to after the library and ui-library have built prevents the "double link" on the library directory.

Solution

The build-all script is updated to perform the build and build-all of library and ui-library before performing the npm link and running the build script on the typescript package.

Documentation

n/a

Test Plan and Compatibility

n/a

@github-actions
Copy link
Copy Markdown
Contributor

PRs go stale after 30 days of inactivity. Please comment or re-open the PR if you are still working on this PR.

@github-actions github-actions bot added the stale label Jan 14, 2024
@github-actions github-actions bot closed this Jan 14, 2024
@mcottontensor mcottontensor reopened this Jan 15, 2024
@github-actions github-actions bot removed the stale label Jan 16, 2024
@mcottontensor mcottontensor merged commit d61b989 into EpicGames:master Jan 24, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants