我很努力地寻找解决这个问题的方法,但没有找到任何东西,有人可以帮忙吗?
\n我只想获取这些数据。
\ntypeError:无法读取未定义的属性“map”->错误
\nimport styles from '../styles/galery.module.css'\nimport Image from 'next/image'\nimport Link from 'next/link'\nimport photo from '../public/01.png'\n\nexport const getStaticProps = async () => {\n\n const response = await fetch('https://api.github.com/orgs/rocketseat');\n const data = await response.json();\n\n return {\n props: { mods: data }\n }\n}\n\nconst ProjectLines = ({ mods }) => {\n return (\n <div className={styles.categoryWrapper}>\n <h4 className={styles.subTitle}>Escrit\xc3\xb3rio</h4>\n <div className={styles.lineWrapper}>\n <a className={styles.leftArrow}>❮</a>\n <div className={styles.line}>\n {mods.map(mod => (\n <div className={styles.imageBox}>\n <Image src={photo} width={400} height={200} layout="responsive" lazy="true" placeholder="blur" />\n <div className={styles.linkContent}>\n <span className={styles.name}>{mod.login}</span>\n …Run Code Online (Sandbox Code Playgroud)