justalever/tailwind-navbar

Unable to run in local browser

springpong opened this issue · 2 comments

Hi Andy,

I really enjoyed learning from your video and was super excited about using Tailwind for one of my team projects.

Unfortunately, after downloaded your project, I'm having issues with getting it to display on the local browser with npm start; npm run serve, yarn, or yarn run serve. I tried separately installing the following methods after deleting the node folder: npm install; yarn; and npm install tailwinds postcss-cli autoprefixer, then run the server commands according to it's method, but got tons of error running the serve commands.
Tailwind nav bar error Pt 1
Tailwind nav bar error Pt 2

I would love getting your insight.

I think you're running an old node version. The 'unexpected token ...' means your version is not supporting the rest spread operator.
Try updating your node version and checking and/or checking with 'node --version' if its up to date.
I just tried it with the newest version of node and it worked like a charm

Tjark-Kuehl,
thank you. You're absolutely right. For unknown reason the node version is default at V8.0.0. I have to $ MVN 8.10.0 in order to switch each time, but it works after switching.