mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 13:45:18 +00:00
chore: change Nuxt3
to Nuxt 3
(#764)
This commit is contained in:
parent
eaa16f2a7b
commit
70c0d8eedb
@ -10,7 +10,7 @@
|
||||
<a href="https://discord.nuxtjs.org/"><img src="https://badgen.net/badge/Discord/join-us/7289DA" alt="Discord"></a>
|
||||
</p>
|
||||
|
||||
Welcome to Nuxt3 repository ✨
|
||||
Welcome to Nuxt 3 repository ✨
|
||||
|
||||
<table>
|
||||
<tbody>
|
||||
|
@ -24,6 +24,6 @@ And finally, just ask the question! There's no need to [ask permission to ask a
|
||||
|
||||
Something isn't working the way that the docs say that it should. You're not sure if it's a bug. You've searched through the open issues and discussions but you can't find anything.
|
||||
|
||||
In that case, the best thing to do is to try to reproduce the bug in a minimal way, apart from the rest of your project. This is a great way to solve problems. There's [a Nuxt3 starter sandbox](https://codesandbox.io/s/github/nuxt/starter/tree/v3) you can fire up in the browser for exactly this purpose.
|
||||
In that case, the best thing to do is to try to reproduce the bug in a minimal way, apart from the rest of your project. This is a great way to solve problems. There's [a Nuxt 3 starter sandbox](https://codesandbox.io/s/github/nuxt/starter/tree/v3) you can fire up in the browser for exactly this purpose.
|
||||
|
||||
Even if you can't create a minimal reproduction, [please do report the bug](/community/reporting-bugs). Nuxt3 is still in active development, and every issue helps make it better.
|
||||
Even if you can't create a minimal reproduction, [please do report the bug](/community/reporting-bugs). Nuxt 3 is still in active development, and every issue helps make it better.
|
||||
|
@ -16,7 +16,7 @@ Search through the [open issues](https://github.com/nuxt/framework/issues) and [
|
||||
|
||||
It's important to be able to reproduce the bug reliably - in a minimal way and apart from the rest of your project. This narrows down what could be causing the issue and makes it possible for someone not only to find the cause, but also to test a potential solution.
|
||||
|
||||
Start with [this Nuxt3 sandbox](https://codesandbox.io/s/github/nuxt/starter/tree/v3-sandbox) and add the **minimum** amount of code necessary to reproduce the bug you're experiencing.
|
||||
Start with [this Nuxt 3 sandbox](https://codesandbox.io/s/github/nuxt/starter/tree/v3-sandbox) and add the **minimum** amount of code necessary to reproduce the bug you're experiencing.
|
||||
|
||||
Once you've reproduced the issue, remove as much code from your reproduction as you can (while still recreating the bug). Time spent making the reproduction as minimal as possible will make a huge difference to whoever sets out to fix the issue.
|
||||
|
||||
|
@ -20,7 +20,7 @@ Before you fix a bug or add a feature, ensure there's an issue that describes it
|
||||
|
||||
### Setup your dev environment
|
||||
|
||||
1. [Fork](https://help.github.com/articles/fork-a-repo/) the [Nuxt3 repository](https://github.com/nuxt/framework) to your own GitHub account and then [clone](https://help.github.com/articles/cloning-a-repository/) it to your local device.
|
||||
1. [Fork](https://help.github.com/articles/fork-a-repo/) the [Nuxt 3 repository](https://github.com/nuxt/framework) to your own GitHub account and then [clone](https://help.github.com/articles/cloning-a-repository/) it to your local device.
|
||||
|
||||
2. Run `yarn` to install the dependencies.
|
||||
|
||||
|
@ -23,7 +23,7 @@ export const setupMeta = async (opts: SetupMetaOptions) => {
|
||||
}
|
||||
|
||||
if (nuxt.options.head && typeof nuxt.options.head === 'function') {
|
||||
throw new TypeError(`${msgPrefix} The head() function in \`nuxt.config\` has been deprecated and in nuxt3 will need to be moved to \`app.vue\`. ${checkDocsMsg}`)
|
||||
throw new TypeError(`${msgPrefix} The head() function in \`nuxt.config\` has been deprecated and in Nuxt 3 will need to be moved to \`app.vue\`. ${checkDocsMsg}`)
|
||||
}
|
||||
|
||||
const runtimeDir = resolve(distDir, 'runtime/meta')
|
||||
|
@ -128,11 +128,11 @@ export const legacyPlugin = (nuxt: NuxtApp) => {
|
||||
get (nuxt, p: keyof LegacyContext | keyof LegacyContext['ssrContext']) {
|
||||
// Unsupported keys
|
||||
if (unsupported.has(p)) {
|
||||
return mock(`Accessing ${p} is not supported in Nuxt3.`)
|
||||
return mock(`Accessing ${p} is not supported in Nuxt 3.`)
|
||||
}
|
||||
|
||||
if (todo.has(p)) {
|
||||
return mock(`Accessing ${p} is not yet supported in Nuxt3.`)
|
||||
return mock(`Accessing ${p} is not yet supported in Nuxt 3.`)
|
||||
}
|
||||
|
||||
// vue-router implementation
|
||||
@ -151,7 +151,7 @@ export const legacyPlugin = (nuxt: NuxtApp) => {
|
||||
|
||||
if (p === '$config') {
|
||||
// TODO: needs implementation
|
||||
return mock('Accessing runtime config is not yet supported in Nuxt3.')
|
||||
return mock('Accessing runtime config is not yet supported in Nuxt 3.')
|
||||
}
|
||||
|
||||
if (p === 'ssrContext') {
|
||||
|
Loading…
Reference in New Issue
Block a user