Comments (6)
Still having this error with students who are trying to pass the first test, even though the post request is working on the DOM.
Uncaught TypeError [ERR_INVALID_ARG_TYPE]: The "stream" argument must be an instance of Stream. Received an instance of Socket
A suggestion that could fix this issue would be to downgrade your node version. Like so:
nvm install 16.14.2
nvm alias default 16.14.2
Or! If you're still working on this lab, just want to downgrade your current version just for this lab, try this:
nvm install 16.14.2
nvm use 16.14.2
You could also delete the node modules and the package-lock file and reinstall dependencies.
That should fix the issue and get the tests to pass or just make the tests easier to read.
from phase-1-sending-data-with-fetch.
Just wanted to echo this error. I am experiencing it as well: Uncaught TypeError [ERR_INVALID_ARG_TYPE]: The "stream" argument must be an instance of Stream. Received an instance of Socket
.
I don't know much about Stream instances. Reading this resource and feeling confused as to why we are getting a websocket instead of a Stream instance?
from phase-1-sending-data-with-fetch.
Had the same issue.
from phase-1-sending-data-with-fetch.
I had the same problem!
from phase-1-sending-data-with-fetch.
Issue still persists.
Downgrading node to 16.14.2 as referenced above did the trick. Thanks for the advice!
You can check your version of node by running this command in your terminal:
node -v
and then you can downgrade with these commands:
nvm install 16.14.2
nvm use 16.14.2
then after you complete the lab you can change back to your current version:
nvm use [version number listed when you ran first command]
from phase-1-sending-data-with-fetch.
Hey all! Thanks for all the help with this issue. It should now be fixed and should work with either Node 16 or Node 18 🙏
from phase-1-sending-data-with-fetch.
Related Issues (4)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from phase-1-sending-data-with-fetch.