How to Refresh NPM files - reactjs

I've been getting some syntax errors and i've removed all the code in the file, but the react app is showing the same compile errors and there is no use of npm run build even the build fails because of the syntax error which i removed already. What might be the problem?

Related

my polymer ide is unable to analyze my jsx files or main app.js file

screen shot
this is my first ever react app am following a simple tutorial.
and for some reason i keep getting errors for every jsx file i create although the tutorial am following doesn't have them although we have matching codes
i installed yarn and npm and sass although npm has 6 vulnerabilities.
and fixing them using the fix force code on the terminal always creates more errors and i have been going along the tutorial and everything compiles
error codes below
Document not found: src/components/navbar/navbar.jsx polymer-ide(unable-to-analyze) [ln1, col1]

ReactJs Compiling Issue: immer.esm.js is not found

I am creating an reactJS application where I am using react-redux for state management. Few days back it was working fine but now I am getting below error at the time of compilation process:
Failed to compile.
./node_modules/#reduxjs/toolkit/node_modules/immer/dist/immer.esm.js
Error: ENOENT: no such file or directory, open 'root_directory\node_modules\#reduxjs\toolkit\node_modules\immer\dist\immer.esm.js'
I had setup react project using "create-react-app" command. After setting up, I have got few commands that I can use to run application. So, I am getting above issue while running below command:
npm run start
I have also tried to fix this issue after deleting package-lock.json file and then run npm install but still getting same error.
Can someone please guide me what has done wrongly and why this error arrived suddendly.
Thanks in advance

getting errors output with razzle

I am using razzle for my react js app. when I run razzle start --verbose I get
✖ Client
Compiled with some errors in 4.88s
✖ Server
Compiled with some errors in 1.46s
I do not however get what the errors are.I have tried to find a way to get errors to be revealed but have had no luck.
Does anyone know how to configure so that you actually get the errors output?
What has helped me before is to do npm run build or razzle build, which usually means I missed an import.

Netlify deploy failed to compile React SPA

I'm able to start the app locally but when attempting to deploy the site, I'm getting the following error log
Between the Failed to compile. text and npm ERR! code ELIFECYCLE there seems to be a couple warnings i.e. use of == instead of === and unused variables.
Build command npm run build
Publish directory tried both build and build/
Is that what's really causing the failure to deploy or is it something else?
Remove the warnings from your code. That's why the build is failing. You have multiple warnings as shown in this console output. Their CI pipeline is treating warnings as errors because process.env.CI is set to true.

React Native Error - Unable to resolve "./withSafeArea" from "node_modules\react-native-safe-area-view\index.js"

I've just updated my React native version to 0.57 from 0.55.
I'm getting bunch of errors starting from Barbel, fixing errors one by one.
Now I'm encountering
"Unable to resolve "./withSafeArea" from
"node_modules\react-native-safe-area-view\index.js"
Error, and that's all information the console gives.
I tried googling it, seems like I'm the first one encountering this error.
What is the error here?
So far I've tried:
delete node_modules folder and do npm install again.
npm install react-native-safe-area-view.
Both no luck :(

Resources