Skip to content
This repository was archived by the owner on Jun 2, 2026. It is now read-only.

Fix npm run watchreact initial build bug#233

Merged
andrewpareles merged 4 commits into
voideditor:mainfrom
bjoaquinc:react-build-bug-fix
Jan 29, 2025
Merged

Fix npm run watchreact initial build bug#233
andrewpareles merged 4 commits into
voideditor:mainfrom
bjoaquinc:react-build-bug-fix

Conversation

@bjoaquinc

@bjoaquinc bjoaquinc commented Jan 24, 2025

Copy link
Copy Markdown
Collaborator

Description:

Improved the npm run watchreact command:

  • Added code in build.js that checks if src2 directory exists already. If not then it runs the scope-taiwind npx script first to create that folder and its contents before setting up the watchers
  • Removed the text in Contributions.md saying build if it doesn't work

Issue:

Resolves the error that occurs when users run npm run watchreact for the first time. The issue occurs because the watchers are set up at the same time. The second watcher (which uses tsup) fails because it is looking for the src2 directory to watch, which does not exist yet as it is being built for the first time by the other watcher (nodemon).

@andrewpareles andrewpareles merged commit c1123f2 into voideditor:main Jan 29, 2025
@bjoaquinc bjoaquinc deleted the react-build-bug-fix branch January 29, 2025 07:46
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants