{"action":"opened","issue":{"url":"https://api.github.com/repos/styleguidist/react-styleguidist/issues/963","repository_url":"https://api.github.com/repos/styleguidist/react-styleguidist","labels_url":"https://api.github.com/repos/styleguidist/react-styleguidist/issues/963/labels{/name}","comments_url":"https://api.github.com/repos/styleguidist/react-styleguidist/issues/963/comments","events_url":"https://api.github.com/repos/styleguidist/react-styleguidist/issues/963/events","html_url":"https://github.com/styleguidist/react-styleguidist/issues/963","id":320105568,"number":963,"title":"TypeError: Object.entries is not a function","user":{"login":"mealeyst","id":1794777,"avatar_url":"https://avatars1.githubusercontent.com/u/1794777?v=4","gravatar_id":"","url":"https://api.github.com/users/mealeyst","html_url":"https://github.com/mealeyst","followers_url":"https://api.github.com/users/mealeyst/followers","following_url":"https://api.github.com/users/mealeyst/following{/other_user}","gists_url":"https://api.github.com/users/mealeyst/gists{/gist_id}","starred_url":"https://api.github.com/users/mealeyst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mealeyst/subscriptions","organizations_url":"https://api.github.com/users/mealeyst/orgs","repos_url":"https://api.github.com/users/mealeyst/repos","events_url":"https://api.github.com/users/mealeyst/events{/privacy}","received_events_url":"https://api.github.com/users/mealeyst/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-03T22:48:10Z","updated_at":"2018-05-03T22:48:10Z","closed_at":null,"author_association":"NONE","body":"This is no longer an issue for me, but I just wanted to make sure that other devs don't run into the same issue that I did. When I was trying to add scripts via the template in the styleguide.config.js file, I kept receiving the following error:\r\n\r\n`TypeError: Object.entries is not a function`\r\n\r\nThis was my configuration:\r\n\r\n```\r\nconst path = require('path')\r\n\r\nmodule.exports = {\r\n  webpackConfig: require('./build/webpack.config.styleguide.js'),\r\n  components: 'patternLibrary/**/*.{js,jsx,ts,tsx}',\r\n  styleguideComponents: {\r\n    Wrapper: path.join(__dirname, 'patternLibrary/theme')\r\n  },\r\n  template: {\r\n    favicon: '//res.cloudinary.com/roa-canon/image/upload/v1508867160/favicon.ico',\r\n    head: {\r\n      scripts: [\r\n        {\r\n          src: 'https://use.typekit.net/bfw8xpa.js'\r\n        }\r\n      ]\r\n    }\r\n  },\r\n  ignore: ['**/theme/**/*.{js,jsx,ts,tsx}']\r\n}\r\n```\r\n\r\nI spent a bunch of time trying to create an example that matched the setup we had for our project's codebase. I managed to get it set up similarly yet it wasn't erring out. I finally just googled the error itself. Turns out the reason why it was running successfully on my example and not on our legacy codebase was so simple and I noticed when I did `node -v` in both codebases.\r\n\r\nThe project codebase returned the following:\r\n`v6.6.0`\r\nThe example codebase I was running returned the following:\r\n`v7.7.1`\r\n\r\nI was using ndenv to set versions of node in various project, the version I was running in our project didn't have support for `Object.entries`. Be sure to use a later version of node! Hopefully this helps some other developers if they are running into something similar!\r\n"}}
{"actor":{"display_login":"mealeyst"}}