import Telescope from 'meteor/nova:lib'; import React from 'react'; import {FormattedMessage } from 'react-intl'; import { ModalTrigger } from "meteor/nova:core"; import Comments from "meteor/nova:comments"; const PostsCommentsThread = (props, context) => { // the error starts below because of comments instead of results const {postId, results, totalCount} = props; // this is how I managed to get the error not swallowed try { return (

{/* this breaks everything */} { context.currentUser ?

:
}>
}
) } catch(e) { console.log(e); // Ah ha! I got you! 🤕 return
error
} }; PostsCommentsThread.displayName = "PostsCommentsThread"; PostsCommentsThread.contextTypes = { currentUser: React.PropTypes.object }; module.exports = PostsCommentsThread; export default PostsCommentsThread;