Advice Generator: Tailwind, React, Vite

Solution retrospective
This is the second project that I have submitted where Github Pages does not render my project in the browser. Yet, when I run "npm run dev" from the CLI the app renders as expected.
console error: Failed to load resource: the server responded with a status of 404 ()
network error: main.jsx 404 script advice-generator-app/:16 1.5 kB 31 ms
What I have found out: Node.js modules (like fs, path, source-map-js, etc.) are not natively supported in the browser environment. When I try to use a Node.js module in your client-side code, Vite recognizes that these modules won't work in a browser.
I am not sure where to go from here?
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on Trevor Nei's solution.
Join our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord