diff --git a/.github/ISSUE_TEMPLATE/1.bug.md b/.github/ISSUE_TEMPLATE/1.bug.md index 402f5eb7b40f64..8c9c214d58512e 100644 --- a/.github/ISSUE_TEMPLATE/1.bug.md +++ b/.github/ISSUE_TEMPLATE/1.bug.md @@ -32,6 +32,8 @@ about: Create a bug report for Material-UI This codesandbox.io template _may_ be a good starting point: https://codesandbox.io/s/github/mui-org/material-ui/tree/master/examples/create-react-app + If you're using typescript a better starting point would be + https://codesandbox.io/s/github/mui-org/material-ui/tree/master/examples/create-react-app-with-typescript If YOU DO NOT take time to provide a codesandbox.io reproduction, should the COMMUNITY take time to help you? @@ -50,11 +52,15 @@ Link: --> ## Your Environment - + | Tech | Version | |--------------|---------| | Material-UI | v1.?.? | | React | | -| browser | | +| Browser | | +| TypeScript | | | etc. | | diff --git a/examples/create-react-app-with-typescript/package.json b/examples/create-react-app-with-typescript/package.json index 0dd70e2603ce79..c27e9e5a67e092 100644 --- a/examples/create-react-app-with-typescript/package.json +++ b/examples/create-react-app-with-typescript/package.json @@ -2,6 +2,7 @@ "name": "create-react-app-with-typescript", "version": "0.1.0", "private": true, + "main": "src/index.tsx", "dependencies": { "@material-ui/core": "latest", "@types/react": "*", diff --git a/examples/create-react-app-with-typescript/tsconfig.json b/examples/create-react-app-with-typescript/tsconfig.json index 1e47f90537fab0..cbc11abe6645da 100644 --- a/examples/create-react-app-with-typescript/tsconfig.json +++ b/examples/create-react-app-with-typescript/tsconfig.json @@ -10,6 +10,7 @@ "jsx": "react", "moduleResolution": "node", "rootDir": "src", + "types": [], "forceConsistentCasingInFileNames": true, "noImplicitReturns": true, "noImplicitThis": true,