Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Unrestricted
Operational Error
This occur because once you create a class (table) you have to do "makemigrations" followed by "migrate" if you don't then they will not find the table and won't be able to perform creating table from django admin page.
Fatal error in launcher: Unable to create process using '"C:\Users\Administrator\Desktop\env\Scripts\python.exe" "C:\General_work\Django\djangoProj\env\Scripts\pip.exe" install djangorestframework': The system cannot find the file specified. so i installed pip as below:
python -m pip install --upgrade pip
after that i installed django rest framework
######################## Line 17:9: Expected an assignment or function call and instead saw an expression no-unused-expressions or eslint error then return (
parsing error: adjacent jsx elements must be wrapped in an enclosing tag. did you want a jsx fragment <>...</>?
while using map() function to loop ___ use
return some value from map function: if there is nothing to return except to write the html then use map(()=>( ) otherwise use map(()=>{ }
error in npm build in netlify
put CI= npm run build
This one will resolve the problems.
npm ERR! Could not resolve dependency: npm ERR! peer react@"^16.8.0 || ^17.0.0" from @material-ui/[email protected] npm ERR! node_modules/@material-ui/core npm ERR! @material-ui/core@"*" from the root project
then use npm install -f @material-ui/core
ERROR in ./node_modules/@mui/system/esm/index.js 1:0-88 export 'keyframes' (reexported as 'keyframes') was not found in '@mui/styled-engine' (possible exports: GlobalStyles, StyledEngineProvider, default, internal_processStyles)
install -- npm install @mui/material @emotion/react @emotion/styled
######################################################################## Node.js #################################################################3 TypeError: products.find is not a function
products= require("./products")
check if the products is an array or not. If it is not then covert it into array or find if the products is inside the object as a key {"products":}, if it is then extract that key or do what products.products.find(()=>{})