docs(nextjs): add babel presets as dependencies (#5705)

This commit is contained in:
Sanjoth Rai 2021-08-12 14:29:16 +05:30 committed by GitHub
parent 8017c09b7e
commit 9995ecb17c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,6 +23,9 @@ npm install --save react react-dom next
# Install webpack loader for Markdown (Use version 3+)
npm install --save-dev frontmatter-markdown-loader
# If using NextJS v11.0.0 or above, @babel/core and @babel/preset-react has to be installed as dependencies of frontmatter-markdown-loader
npm install --save-dev @babel/core @babel/preset-react
# Create folder for pages (default for NextJS), and add a index file
mkdir pages
touch pages/index.js