Error building/running the Docs Viewer example app

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…

The key part -

Any help would be much appreciated.

N.B I have Node v15.01 installed, and following the link in the error message, the supported versions are listed as -

So it looks like maybe its refusing to work with a newer version than 14?

After upgrading node-sass by

npm uninstall node-sass
npm install node-sass

I still have no joy…

As someone with no experience with any of these tools, I’m flailing around in the dark right now. :exploding_head:

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.

Hey @dipro,

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… :weary:

P.S. I posted another question which relates to my attempts to get my app finished.-

I’d be grateful if you can offer any thoughts.

Cheers.

Yay! Build successful with Node v14.15.1 (LTS). :sunglasses: