I have hit an error trying to build and run the docs-viewer example app (which I’m hoping to use as the basis for my own…)
It seemingly built OK. I wasn’t sure if I could just change the text from quick-start-react to docs-viewer in the npx command from the guide, but tried it and it seemed to work, albeit with some warnings and unexpected prompts I had to respond to -
But then running it gave rise to this in the app itself…
Hmmm. I am running Node 10.16.3 and it seems to compile fine. Try installing a supported version of Node usign the Node Version Manager: Node Version Manager
To do this, you’ll need to first install NVM.
Then, run nvm install 10.16.3 to install the version of Node.
Finally, run nvm use 10.16.3 before running the npx command.
Thanks very much for the reply. I had come to that conclusion myself, after some googling. I’m building on a Windows machine, but apparently there is an nvm-windows app to do the job of switching between versions. (And I was intending to try version 14, but I’ll have to see what options nvm offers, and it’s certainly good to know a version that definitely works.
I haven’t tried it yet because I’ve been battling with other issues. I’ve left things far too late for comfort with regard to the current devpost contest deadline, and I’ve been battling with the release build process, having thus far only ever run my app locally via ngrok. I seem to be making progress, but it’s going to be a close-run thing…
P.S. I posted another question which relates to my attempts to get my app finished.-