I got a strange error in this problem made me crazy i don’t know what is the reason for this error
and this is my code
app.get('/json', (req, res) => {
let data = {"message": "Hello json"};
if(process.env.MESSAGE_STYLE === 'uppercase'){
data.message = data.message.toUpperCase();
}
res.json(data);
});
this code works fine and give no error when i run it on glitch but when i click submit button in freecodecamp this error apears to me.
1 Like
If your test case is passed then let me know .
because i also stuck here
Sky020
June 18, 2020, 10:35am
3
Hello there,
There appears to have been some breaking change between a package the fCC tests use, and Glitch.
For now, the recommended steps are:
Fork the repo to another platform, like CodeSandbox, and complete it there.
Move on from this lesson, as most of the other tests do not rely on the broken package.
Hope this helps
1 Like
thanks for your helping i will fork the repo in another platform
i use repil.it it awesome and super fast to
1 Like
Your Test cases is passed ?
yup, i just finish this module easily after moving to repl
1 Like
Hey Well-done
Good Job
Let me know what is step are you did ?
Can you please tell me how to use repil it to complete this Challange…
Thank you so much dear .
You Reply give me a gift today on my birthday.
Really this Challange is frustrating.
Once again Thank you🤗
Happy birthday
look after signed in repl.it you will find button at the top right corner called new repl after that choose import from github like this
and add the link of the official repo link
1 Like
Sky020
June 18, 2020, 8:09pm
12
Hello @akkiee11 ,
It looks like you need to run npm i
within the console.
2 Likes
Yes Its Working But Not passed test cases
In the second case if MESSAGE_STYLE
not equal to uppercase
it should be
Hello json
instead of hello json
with upper case for the first character only
1 Like
Yes Its Right…
Its Working.
Hi all,
I’m experiencing the same issue with repl.it. I just moved on for now…
oddgrd
February 7, 2021, 5:44pm
19
[FIXED]: A fix has been pushed onto the fcc-bground-package, and this should no longer be a problem. If you started this project recently, you will likely need to:
Open the terminal/shell
Run the command npm update --save
Restart the app
As of <04/02/2021, a change has caused the above mentioned lesson to be uncompletable. Some have also been unable to complete:
Implement a Root-Level Request Logger Middleware
Chain Middleware to Create a Time Server
Error: SyntaxError: Unexpected token < …
I had the same issue, the lesson is bugged.