Dan
12
Q:

how to install gatsby with typescript

# Install this on the current gatsby project
npm install gatsby-plugin-typescript & npm install typescript --save-dev
# Yarn
yarn add gatsby-plugin-typescript & yarn add typescript --dev

# gatsby-config.js
module.exports = {
  plugins: [
    `gatsby-plugin-typescript`,
  ],
}

# https://medium.com/@stojanpeshov/how-to-setup-gatsbyjs-starter-with-typescript-eslint-prettier-269b1a0a812f
1
yarn add gatsby-plugin-typescript
yarn add typescript --dev

# npm

npm i gatsby-plugin-typescript 
npm i typescript --save-dev
0

New to Communities?

Join the community