I cannot deploy the tutorial project for the “A Quickstart Guide to React in the CMS” HubSpot Academy course to my HubSpot account, as outlined here:
I cloned the sample Git repo, ran the global HubSpot CLI tools installs via “npm i -g @hubspot/cli”, installed dependencies via “npm install” in the root “quickstart-guide-to-react-in-cms” folder, can run and modify the project as suggested by the course (this file was succesfully modified while the app was running in the browser:
“C:\Users\blah\blah\quickstart-guide-to-react-in-cms\cms-react-project\cms-react-app\components\partials”).
However: when I try to deploy to my account, I get errors:
C:\Users\blah\blah\cms-react\quickstart-guide-to-react-in-cms> npm run deploy
> deploy
> hs project upload cms-react-project
**[ERROR]
Unknown argument: cms-react-project**
Another forum post suggested just using “hs project upload”, but that also results in an error:
PS C:\Users\blah\blah\cms-react\quickstart-guide-to-react-in-cms> hs project upload
**[ERROR]
Unable to locate a project configuration file. Try running again from a project directory, or run `hs project create` to create a new project.**
Fine, I run “hs project create,” which created a subfolder in the quickstart guide folder:
PS C:\Users\blah\blah\cms-react\quickstart-guide-to-react-in-cms> hs project create
? [--name] Give your project a name: test-react-project01
? [--dest] Enter the folder to create the project in: C:\Users\blah\blah\cms-react\quickstart-guide-to-react-in-cms\test-react-project01
? [--template] Choose a project template: CRM getting started project with public apps
[SUCCESS] Project test-react-project01 was successfully created in C:\Users\blah\blah\cms-react\quickstart-guide-to-react-in-cms\test-react-project01
Welcome to HubSpot Developer Projects!
--------------------------------------------------
What’s next?
Tip: All project commands must be run from within a project directory
Run `hs project upload` to upload your project to your HubSpot account
Run `hs project dev` to set up your test environment and start local development
Run `hs project install-deps` to install dependencies for your project components
Run `hs project --help` to learn more about available project commands
Run `hs feedback` to report a bug or leave feedback
See HubSpot’s sample projects: https://developers.hubspot.com/docs/platform/sample-projects?utm_source=cli&utm_content=project_create_whats_next
--------------------------------------------------
But I get the same errors:
PS C:\Users\blah\blah\cms-react\quickstart-guide-to-react-in-cms\test-react-project01> npm run deploy
> deploy
> hs project upload cms-react-project
[ERROR] Unknown argument: cms-react-project
FWIW, “cms-react-project” is an earlier attempt which I don’t seem to be able to break away from. Trying to specify the project I created and whose folder I’m in also returns errors:
PS C:\Users\blah\blah\cms-react\quickstart-guide-to-react-in-cms\test-react-project01> hs project upload test-react-project01
[ERROR] Unknown argument: test-react-project01
This is hugely frustrating: I see no answers to this issue which I cannot resolve (it doesn’t help that some links in the course are broken, or that the UI is significantly different now than what the course shows). Kind of hard to use local development or React if following your own course materials result in errors. I hope this can be resolved quickly, unlike several other forum posts for similar issues for which correct answers have yet to be provided.
Thank you for your prompt attention.
