Skip to content

Commit 60d67b0

Browse files
authored
Update README.md and fix a typo (#1645)
* Add section on README about the recommended Node.js version. * fix typo in the tutorial * Update README and package.json Update them according to the result
1 parent 42e733f commit 60d67b0

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ pnpm i
1111
pnpm run dev
1212
```
1313

14+
This project requires Node.js to be `v14.0.0` or higher, because we use new JavaScript features in our code, such as optional chaining.
15+
16+
1417
## Working on the content
1518

1619
- See VitePress docs on supported [Markdown Extensions](https://vitepress.vuejs.org/guide/markdown.html) and the ability to [use Vue syntax inside markdown](https://vitepress.vuejs.org/guide/using-vue.html).

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
{
2+
"engines": {
3+
"node": ">=14.0.0"
4+
},
25
"scripts": {
36
"dev": "vitepress",
47
"build": "vitepress build",

src/tutorial/src/step-11/description.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Then, we can use the component in the template as:
4545
<div class="html">
4646

4747
```js
48-
import ChildComp from './ChildComp.vue'
48+
import ChildComp from './ChildComp.js'
4949

5050
createApp({
5151
components: {

0 commit comments

Comments
 (0)