893 viewsMern Amazona
0 Comments

[nodemon] app crashed – waiting for file changes before starting…
[nodemon] restarting due to changes…
[nodemon] starting `node server.js`
file:///C:/Users/15593/Desktop/projects/amazona/backend/server.js:6
app.get(“/api/products’, (req, res) => {
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

SyntaxError: Invalid or unexpected token
at ESMLoader.moduleStrategy (node:internal/modules/esm/translators:117:18)
at ESMLoader.moduleProvider (node:internal/modules/esm/loader:337:14)
at async link (node:internal/modules/esm/module_job:70:21)
[nodemon] app crashed – waiting for file changes before starting…
[nodemon] restarting due to changes…
[nodemon] starting `node server.js`

Bassir Changed status to publish November 26, 2023

I solve my problem by Restart the server side again and watch the video again and again to catch the problem and google it . I think if you follow the process it will help you to solve the issues you are facing.