Hi I can’t seem to get my react portfolio website to deploy.
i can run the build locally so idk why it won’t work.
Here is a link to the logs: https://pastebin.com/9yrX1nFh
I am not sure exactly what i am supposed to do here, this worked fine the last time i tried to do it with my old react portfolio.
This is just linking form a GitHub repo here: GitHub - MichaelAuricht/NewPortfolio: A professional programming portfolio built with React.
@mko Your issue is this:
9:48:11 AM: $ npm run build
9:48:25 AM: Treating warnings as errors because process.env.CI = true.
9:48:25 AM: Most CI servers set it automatically.
9:48:25 AM: [eslint]
9:48:25 AM: src/PortfolioContainer/AboutMe/AboutMe.js
9:48:25 AM: Line 12:9: 'fadeInSubscription' is assigned a value but never used no-unused-vars
9:48:25 AM: src/PortfolioContainer/Home/Header/Header.js
9:48:25 AM: Line 22:9: 'currentScreenSubscription' is assigned a value but never used no-unused-vars
9:48:25 AM: Line 42:9: 'classes' is assigned a value but never used no-unused-vars
9:48:25 AM: src/PortfolioContainer/MyWork/MyWork.js
9:48:25 AM: Line 13:9: 'fadeInSubscription' is assigned a value but never used no-unused-vars
The default is that warnings be treated as errors and your build is throwing warnings.
If the build encounters an error it will fail.
If you don’t want this behavior, you can set
false, the easiest way for you to do this will be to change your Build command from
npm run build to
CI= npm run build
Thanks for confirming you found your solution.