Closed NileshArnaiya closed 2 months ago
Also adding this screenshot here. White screen many times and the same error as above.
@NileshArnaiya Add the following lines
const joinedCommands = commands.join(' && ');
const cleanedCommands = joinedCommands.endsWith(' && ') ? joinedCommands.slice(0, -2) : joinedCommands;
just below return new Promise((resolve, reject)
line in server/execute.js
and server/execute-react.js
files and replace
exec(commands.join(' && '), (err, stdout, stderr) => {
with exec(cleanedCommands, (err, stdout, stderr) => {
in both the files, it should work just fine.
Thank you @Dhruvil099 works like a charm, I'll email you back with some queries. Closing this now.
Getting this error while previewing the generated code. Please can you check. I'm using GPT-35-turbo using Azure OpenAI.
Prompt was "Use html,css, js to explain me circular motion"
@ozgrozer