Netlify deploy error due to unresolved JSON import in Vite build#3
Open
netlify-coding[bot] wants to merge 1 commit into
Open
Netlify deploy error due to unresolved JSON import in Vite build#3netlify-coding[bot] wants to merge 1 commit into
netlify-coding[bot] wants to merge 1 commit into
Conversation
…a5f495d701deb4388c20c)
✅ Deploy Preview for myrecoveryspokane ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
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.
🔗 View agent run: https://app.netlify.com/projects/myrecoveryspokane/agent-runs/6a0a5f495d701deb4388c20c
🤖 Agent: Claude
💬 Prompt: The Netlify deploy errored, with the following guidance provided:
Diagnosis
✅ Result: # Fix: Remove missing firebase-applet-config.json import
The Netlify build was failing because
src/lib/firebase.tscontained a static import of../../firebase-applet-config.json, a file that was never committed to the repository. Rollup (used internally by Vite) could not resolve this path at build time, causing the build to exit with a non-zero code before producing any output.The file already read Firebase configuration values from
VITE_FIREBASE_*environment variables, using the JSON file only as a fallback. Since the JSON file was absent and the environment variables are the intended source of truth for the deployed environment, the JSON import and all references to it were removed. The Firebase app initialization now reads exclusively fromVITE_FIREBASE_API_KEY,VITE_FIREBASE_AUTH_DOMAIN,VITE_FIREBASE_PROJECT_ID,VITE_FIREBASE_STORAGE_BUCKET,VITE_FIREBASE_MESSAGING_SENDER_ID,VITE_FIREBASE_APP_ID,VITE_FIREBASE_MEASUREMENT_ID, andVITE_FIREBASE_FIRESTORE_DATABASE_ID.For the application to connect to Firebase correctly after this change, all of those
VITE_FIREBASE_*environment variables must be set in the Netlify site settings. Any that are currently stored under non-prefixed names (e.g.,apiKey,projectId) will need to be added with theVITE_prefix so Vite exposes them to the client bundle.