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 trialRyan Giusti
18,082 PointsAnyone having an issue in Microsoft Edge with the promises.js project?
I seem to be getting an error with the spread operator: return fetch(wikiUrl + person.name) .then( response => response.json() ) .then( profile => { <!-- This line here --> return { ...profile, craft}; }) .catch( err => console.log('Error fetching url', err) ) });
I haven't been able to recreate the issue in Chrome or Firefox.
1 Answer
tomd
16,701 PointsDepends what versions of Edge you're using. If your on Edge 79 or lower then the spread operator won't work in object literals. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Spread_syntax#Spread_in_object_literals