complete-node-bootcamp icon indicating copy to clipboard operation
complete-node-bootcamp copied to clipboard

Hi There...

Open mohsenpro54 opened this issue 4 years ago • 13 comments

I lose alot time for this error, Please help me : Parsing error: 'import' and 'export' may appear only with 'sourceType: module'eslint

mohsenpro54 avatar Oct 22 '21 08:10 mohsenpro54

Seems to me one or more of your Import / export statement is incorrectly written.. could you share the whole err.... If this line is the only error you are getting then it would be nice if you can share your code.

nvispute avatar Oct 22 '21 09:10 nvispute

All import and export in the code done some err : Screenshot 2021-10-24 104829

mohsenpro54 avatar Oct 24 '21 09:10 mohsenpro54

capture 2

mohsenpro54 avatar Oct 24 '21 09:10 mohsenpro54

Also this error in the console : [Object: null prototype] {} Screenshot (2)

mohsenpro54 avatar Oct 24 '21 09:10 mohsenpro54

you are missing a few npm packages...from the above screenshots i can tell you you need to atleast install axios using npm i --save axios

nvispute avatar Oct 24 '21 11:10 nvispute

we can find all the package.json here Screenshot (3) Screenshot (4) Screenshot (5) :

mohsenpro54 avatar Oct 24 '21 11:10 mohsenpro54

Still some err Screenshot (6)

mohsenpro54 avatar Oct 24 '21 11:10 mohsenpro54

do a console.log(req.originalUrl) if you see output for a better understanding what the issue. your if statement is not able to execute .startswith() on a empty or undefined value

nvispute avatar Oct 24 '21 12:10 nvispute

yes it is done the err info , but i think the probleme is from the export and import info here you can see the err in the console of browser and the console of node Screenshot (7) : Screenshot (8)

mohsenpro54 avatar Oct 24 '21 13:10 mohsenpro54

Am very busy and alot time without solved those err. Please help me

mohsenpro54 avatar Oct 24 '21 13:10 mohsenpro54

The error in the browers are realted to CSP [content security policy] i have answered it here. Please refer to that topic to solved the current errors

nvispute avatar Oct 24 '21 13:10 nvispute

JONAS, in your application "natours" so mush errors and do not worked , am sorry for that but you need to dowonload a results of all errors

mohsenpro54 avatar Nov 28 '21 16:11 mohsenpro54

just sell application and you forgot the after

mohsenpro54 avatar Nov 28 '21 16:11 mohsenpro54