rsnext/docs/02-app/01-building-your-application/01-routing
bottxiang cee0599628
fix wrong Link import (#52298)
<!-- Thanks for opening a PR! Your contribution is much appreciated.
To make sure your PR is handled as smoothly as possible we request that
you follow the checklist sections below.
Choose the right checklist for the change(s) that you're making:

## For Contributors

### Improving Documentation

- Run `pnpm prettier-fix` to fix formatting issues before opening the
PR.
- Read the Docs Contribution Guide to ensure your contribution follows
the docs guidelines:
https://nextjs.org/docs/community/contribution-guide

### Adding or Updating Examples

- The "examples guidelines" are followed from our contributing doc
https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md
- Make sure the linting passes by running `pnpm build && pnpm lint`. See
https://github.com/vercel/next.js/blob/canary/contributing/repository/linting.md

### Fixing a bug

- Related issues linked using `fixes #number`
- Tests added. See:
https://github.com/vercel/next.js/blob/canary/contributing/core/testing.md#writing-tests-for-nextjs
- Errors have a helpful link attached, see
https://github.com/vercel/next.js/blob/canary/contributing.md

### Adding a feature

- Implements an existing feature request or RFC. Make sure the feature
request has been accepted for implementation before opening a PR. (A
discussion must be opened, see
https://github.com/vercel/next.js/discussions/new?category=ideas)
- Related issues/discussions are linked using `fixes #number`
- e2e tests added
(https://github.com/vercel/next.js/blob/canary/contributing/core/testing.md#writing-tests-for-nextjs
- Documentation added
- Telemetry added. In case of a feature if it's used or not.
- Errors have a helpful link attached, see
https://github.com/vercel/next.js/blob/canary/contributing.md


## For Maintainers

- Minimal description (aim for explaining to someone not on the team to
understand the PR)
- When linking to a Slack thread, you might want to share details of the
conclusion
- Link both the Linear (Fixes NEXT-xxx) and the GitHub issues
- Add review comments if necessary to explain to the reviewer the logic
behind a change

### What?
This component cause Error: Element type is invalid: expected a string
(for built-in components) or a class/function (for composite components)
but got:
undefined](https://stackoverflow.com/questions/69211200/next-js-error-element-type-is-invalid-expected-a-string-for-built-in-componen)
### Why?
Wrong Link import, default export should be import as `import Link from
"next/link"` instead of `import {Link} from "next/link"`;
`;
`
### How?
import Link from "next/link"

Closes NEXT-
Fixes #

-->
2023-07-05 22:08:22 -07:00
..
01-defining-routes.mdx docs: Adds Note to Good to know consistency (#51080) 2023-06-12 19:00:07 -07:00
02-pages-and-layouts.mdx added good to know in /app based pages and layout in nested layouts (#51558) 2023-06-21 15:42:43 -07:00
03-linking-and-navigating.mdx fix wrong Link import (#52298) 2023-07-05 22:08:22 -07:00
04-route-groups.mdx docs: Adds Note to Good to know consistency (#51080) 2023-06-12 19:00:07 -07:00
05-dynamic-routes.mdx [Docs] fix example function param and signature (#51235) 2023-06-13 13:33:31 +00:00
06-loading-ui-and-streaming.mdx [Docs] Fix run-on sentence (#51956) 2023-06-29 02:28:28 +00:00
07-error-handling.mdx [Next Docs] Migrate new docs from next-site to Next.js repo (#50701) 2023-06-08 12:03:14 +02:00
08-parallel-routes.mdx Docs: Fix missing typings for typescript example (#52076) 2023-07-01 15:15:15 -05:00
09-intercepting-routes.mdx [Next Docs] Migrate new docs from next-site to Next.js repo (#50701) 2023-06-08 12:03:14 +02:00
10-router-handlers.mdx Update 10-router-handlers.mdx (#51850) 2023-06-26 14:25:39 -07:00
11-middleware.mdx Add separate links in shared documentation (#51733) 2023-06-28 23:37:56 +00:00
12-colocation.mdx docs: Adds Note to Good to know consistency (#51080) 2023-06-12 19:00:07 -07:00
13-internationalization.mdx Makes codeblock language and filename extensions consistent (#51056) 2023-06-12 18:55:08 +00:00
index.mdx docs: add missing comma. (#51489) 2023-06-19 07:48:39 -07:00