Hi first of All big thanks for this detailed video. I am following the lesson I am getting error at the end of part 9 where u run the “npm start” command.
> zzzas@1.0.0 start > nodemon --watch backend --exec babel-node backend/server.js [nodemon] 2.0.20 [nodemon] to restart at any time, enter `rs` [nodemon] watching path(s): backend\**\* [nodemon] watching extensions: js,mjs,json [nodemon] starting `babel-node backend/server.js` D:\javascript\ecomwebsite\ZZZAS\node_modules\@babel\core\lib\config\full.js:210 throw e; ^ Error: [BABEL] D:\javascript\ecomwebsite\ZZZAS\backend\server.js: @babel/preset-env: 'target' is not a valid top-level option. - Did you mean 'targets'? (While processing: "D:\\javascript\\ecomwebsite\\ZZZAS\\node_modules\\@babel\\preset-env\\lib\\index.js") at OptionValidator.validateTopLevelOptions (D:\javascript\ecomwebsite\ZZZAS\node_modules\@babel\helper-validator-option\lib\validator.js:20:15) at normalizeOptions (D:\javascript\ecomwebsite\ZZZAS\node_modules\@babel\preset-env\lib\normalize-options.js:133:5) at D:\javascript\ecomwebsite\ZZZAS\node_modules\@babel\preset-env\lib\index.js:270:37 at D:\javascript\ecomwebsite\ZZZAS\node_modules\@babel\helper-plugin-utils\lib\index.js:23:12 at sync (D:\javascript\ecomwebsite\ZZZAS\node_modules\@babel\core\lib\gensync-utils\async.js:40:25) at sync (D:\javascript\ecomwebsite\ZZZAS\node_modules\gensync\index.js:182:19) at D:\javascript\ecomwebsite\ZZZAS\node_modules\gensync\index.js:210:24 at Generator.next (<anonymous>) at D:\javascript\ecomwebsite\ZZZAS\node_modules\@babel\core\lib\config\full.js:231:21 at Generator.next (<anonymous>) [nodemon] app crashed - waiting for file changes before starting...
I tried several solutions from YouTube and stakeoverflow.com but none of them worked. Please can you guide how to get rid of this error.
Regards
A Raja
Bassir Answered question October 16, 2022

Hi
i just figure out what was the issue in the “.babelrc” file I made a mistake, instead of “targets” I just wrote “target”. Once this changed , saved it and ran “npm start” everything worked fine.
Thank you once again for lesson . I will continue if find any issue will get InTouch with you.