Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The token '&&' is not a valid statement separator in this version

Tags:

On the way of installing Webpack on my React Project, the following problem hinders my progress:

last step to configure the Webpack

npm run build && node ./dist/main.js 

Error on Windows Power Shell / on Visual Studio Code

PS C:\Users\pythonbuddha\Desktop\to_experiment\to-do-list> npm run build && node ./dist/main.js At line:1 char:15 + npm run build && node ./dist/main.js +               ~~ The token '&&' is not a valid statement separator in this version.     + CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordException     + FullyQualifiedErrorId : InvalidEndOfLine  

Tutorial which promised to configure the webpack

https://developerhandbook.com/webpack/webpack-4-from-absolute-scratch/  https://developerhandbook.com/webpack/how-to-configure-scss-modules-for-webpack/ 
like image 309
pythonbuddha Avatar asked Jan 08 '21 10:01

pythonbuddha


People also ask

How does the token work?

Like the App, the Token only captures proximity data via Bluetooth technology and does not capture GPS / geolocation data. The Token does not have internet / cellular connectivity. Any data shared with MOH will be used for contact tracing persons possibly exposed to COVID-19.

How do I trace a token?

For effective contact tracing, you should periodically check that your Token is working by looking out for a green light that blinks about once every minute. If the Token is blinking red, or if there is no light at all, you should visit any Token vending machine at a CC for a free replacement.

How much is TraceTogether token?

The first replacement of a lost Token is free. Subsequent replacements are chargeable at $9 per Token. Replacement of lost Tokens can only be done at CCs. Payment can be made via PayNow, EZ-link, Nets Flashpay, Mastercard, VISA, JCB, and Union Pay.

How long does the token battery last?

The life of the token battery is generally about five years. Customers who have used the token for several years should pay attention to the remaining life of the current token battery.


1 Answers

It's because you're in PowerShell, try running it in CMD or Git Bash

Alternatively (if you wish to continue in PS):

(npm run build) -and (node ./dist/main.js) 

3rd Alternative, just run them separetly,

like image 84
Tibebes. M Avatar answered Sep 20 '22 19:09

Tibebes. M