Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialVlad Tanasie
7,201 PointsAfter I click the Sign Up button I get 'data and salt arguments required' in the browser.
Any ideas why?
1 Answer
Tim Marks
Full Stack JavaScript Techdegree Graduate 21,747 PointsWithout seeing your code it's hard to validate, but I ran into the same error. I used an arrow function, which "this" didn't work correctly with. If you're using an arrow function like UserSchema.pre('save', (next) => {
update it to a regular function like UserSchema.pre('save', function(next) {
and see if that fixes it for you.