npm run build for react project returning node promise rejection warning

Viewed 10

I have a React project which has been working fine. Today I made some alterations, did the 'npm run build' and got the following error:

(node:1178124) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): SyntaxError: Unexpected token ...
(node:1178124) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

When I restored the changed code back to its original state, the error is still there.

Firstly, I am not sure why I am getting a node error, for a front end component, secondly where should I be looking for this error.

Any tips greatly appreciated.

0 Answers
Related