From 33b83dd4c2afc7f7d8f22349790cbc15b9c337a0 Mon Sep 17 00:00:00 2001 From: s-ong-c Date: Wed, 18 Nov 2020 15:26:02 +0900 Subject: [PATCH] feat: temp bug fixed https://github.com/facebook/create-react-app/issues/9429 --- template/src/App.tsx | 6 ++++-- template/src/index.tsx | 4 ++-- template/tsconfig.json | 3 +-- template/tsconfig.paths.json | 8 -------- 4 files changed, 7 insertions(+), 14 deletions(-) delete mode 100644 template/tsconfig.paths.json diff --git a/template/src/App.tsx b/template/src/App.tsx index 89b56c2..6a1089d 100644 --- a/template/src/App.tsx +++ b/template/src/App.tsx @@ -1,6 +1,8 @@ -import React from "react"; import { Route, Switch } from "react-router-dom"; -import HomePage from "@/pages/HomePage"; + +import HomePage from "./pages/HomePage"; +import React from "react"; + function App() { return ( diff --git a/template/src/index.tsx b/template/src/index.tsx index af3fead..99bc33b 100644 --- a/template/src/index.tsx +++ b/template/src/index.tsx @@ -1,9 +1,9 @@ -import App from "@/App"; +import App from "./App"; import { BrowserRouter } from 'react-router-dom'; import { Provider } from "react-redux"; import React from "react"; import ReactDOM from "react-dom"; -import store from "@/modules"; +import store from "./modules"; ReactDOM.render( diff --git a/template/tsconfig.json b/template/tsconfig.json index 29f953f..e7b9385 100644 --- a/template/tsconfig.json +++ b/template/tsconfig.json @@ -1,7 +1,6 @@ { - "extends": "./tsconfig.paths.json", "compilerOptions": { - "target": "es5", + "target": "es2016", "lib": [ "dom", "dom.iterable", diff --git a/template/tsconfig.paths.json b/template/tsconfig.paths.json deleted file mode 100644 index 486c7be..0000000 --- a/template/tsconfig.paths.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "compilerOptions": { - "baseUrl": "./", - "paths": { - "@/*": ["src/*"] - } - } -}