feathersjs / docs

[MOVED] Legacy Feathers documentation
https://crow.docs.feathersjs.com/
MIT License
242 stars 532 forks source link

fix: remove app.listen(..).on broken function #1571

Closed YvesMolina closed 2 years ago

YvesMolina commented 2 years ago

When I tried to run the code for the app.js in the "An API Server" part of the tutorial, I got this error : TypeError: app.listen(...).on is not a function

I am using node v16.13.2 and npm 8.7.0.

I replaced the function causing the error with a working syntax and the app launched correctly.

netlify[bot] commented 2 years ago

Deploy Preview for feathers-docs ready!

Name Link
Latest commit 9fe662ac4cba1ab6664531610545d3f3b534a527
Latest deploy log https://app.netlify.com/sites/feathers-docs/deploys/627b7ea9efefec0008ac8601
Deploy Preview https://deploy-preview-1571--feathers-docs.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

daffl commented 2 years ago

Thank you for the pull request! This probably happened because the v5 prerelease was accidentally published as latest for a short time. The original example should work again (and will be updated accordingly for the official release).