# next.js学习 **Repository Path**: sunmeng123/next.js-learning ## Basic Information - **Project Name**: next.js学习 - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-11-16 - **Last Updated**: 2023-11-16 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app). ## Getting Started // 路由 page 文件下生产路由 文件夹 生成嵌套路由 动态路由 [postId].tsx文件 []括号生成动态路由 [...params].tsx 多个参数 [postId]文件夹 下的index。tsx生成动态路由 // 使用 session iron-session // 遇到问题 <Link>不能嵌套a标签 import request from 'service/fetch';报错 Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports 公共组件库必须文件夹名称 components ,不然引入request报错