Category : reactjs

I am trying to pass an enviroment variable file just before run npm start on windows I have tried bash env.sh but it didn’t work I got this error PS C:developmenttoolboxfrontend-spa> bash env.sh Please enable the Virtual Machine Platform Windows feature and ensure virtualization is enabled in the BIOS. For information please visit https://aka.ms/wsl2-install Source: ..

Read more

Fresh install of create-react-app project on Windows 10, useEffect is not working. Injected the following code inside the App function to test: useEffect(() => { console.log(‘effect’); }); Upon starting the application, I cannot see any output in the terminal in which the command npm start was run where this was previously visible on a Linux ..

Read more

enter image description here C:Users746Desktopreact_js>npx create-react-app my-app ‘CALL "C:Program Filesnodejsnode.exe" "C:Program Filesnodejsnode_modulesnpmbinnpm-cli.js" prefix -g’ is not recognized as an internal or external command, operable program or batch file. npm ERR! code ENOENT npm ERR! syscall spawn C:Windowssystem32cmd.exe; npm ERR! path C:Users746Desktopreact_js npm ERR! errno -4058 npm ERR! enoent spawn C:Windowssystem32cmd.exe; ENOENT npm ERR! enoent This ..

Read more

When I run npm audit on my React app I get: fix available via `npm audit fix –force` Will install [email protected], which is a breaking change node_modules/sqlite3/node_modules/tar node-gyp <=3.8.0 Depends on vulnerable versions of tar node_modules/sqlite3/node_modules/node-gyp sqlite3 >=5.0.0 Depends on vulnerable versions of node-gyp node_modules/sqlite3 9 vulnerabilities (6 moderate, 3 high) However, when I do ..

Read more

If I run locally run start Everything works perfectly. After executing the command docker run -p 3000:3000 -v /app/node_modules -v ${pwd}:/app b88c46febae5 I get an unresponsive server which is just stuck. I cannot terminate it by pressing CTRL + C What I did…. Created .env file in a root project and inserted (in any order, ..

Read more

I’ve been working on a react project and have used git for version control – sometimes I work on it using my windows pc and sometimes using my Macbook Pro. I was wondering if anyone knew how to clear the following garbage from the command line when I run the react app. asset static/js/bundle.js 1.43 ..

Read more

i am facing this error when i try to start a react project: Plugin "react" was conflicted between "package.json » eslint-config-react-app » C:UsersJúliodesktopdeletealsonode_moduleseslint-config-react-appbase.js" and "BaseConfig » C:UsersJúlioDesktopdeletealsonode_moduleseslint-config-react-appbase.js". I think the error is due to the paths not matching and it seems to be a windows problem. Does anyone know how can i fix that? Source: ..

Read more