Stabilize React build setup and resolve key lint/type blockers#12
Open
DigitalBlueprint239 wants to merge 10 commits into
Open
Stabilize React build setup and resolve key lint/type blockers#12DigitalBlueprint239 wants to merge 10 commits into
DigitalBlueprint239 wants to merge 10 commits into
Conversation
❌ Deploy Preview for magical-starlight-0c1207 failed.
|
…actice AI contract
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
react-scripts build.Description
package.jsonto resolve peer conflicts and add missing runtime packages (@supabase/supabase-js,recharts,tailwindcssetc.) and updatedpackage-lock.jsonaccordingly.postcss.config.jsnow requirestailwindcss), and removed the old@tailwindcss/postcssusage.DebugPanelhook-order/lint violations by avoiding earlyreturnon invalid props, addingsafeResultsfallbacks and guarding handlers withcanRunAll/canTogglePassedinsrc/components/SmartPlaybook/DebugPanel.js.src/import-meta.d.ts(typing forimport.meta.env) and updatingtsconfig.jsonto modern module settings and selective excludes to avoid unrelated embedded subtrees from breaking the main compilation.src/App.test.tsxto be compatible with the TS/React setup.Testing
npm install --legacy-peer-deps— succeeded and produced an updated lockfile; vulnerability audit output noted but does not block build.@supabase/supabase-jsandrechartsseparately withnpm install --legacy-peer-deps— both succeeded.npm run buildrepeatedly and iteratively fixed blockers: the Tailwind/PostCSS plugin mismatch, React Hooks lint violations inDebugPanel,import.metatyping errors (fixed viasrc/import-meta.d.ts), and various missing deps; these fixes allowed the build to advance further than the initial failures.npm run buildstill fails with an existing TypeScript prop error (aPlayerFeedbackusage missing requireddrillIdprop), which is outside the scope of the targeted fixes above and requires additional code cleanup; all other addressed issues succeeded.Codex Task