Skip to content

bug #7 git clone 到本地,yarn install后 npm start 报错 #13

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
$ git clone [email protected]:icepy/typescript-react-starter.git
$ cd typescript-react-starter
$ yarn
$ npm start
$ yarn start
```

使用浏览器访问 `http://localhost:3000/`。(更多命令可查看 package.json 的 scripts 字段)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"redux-logger": "^3.0.6",
"redux-saga": "^1.1.1",
"redux-thunk": "^2.3.0",
"typescript": "3.6.3"
"typescript": "3.8.2"
},
"devDependencies": {
"customize-cra": "^0.8.0",
Expand Down
2 changes: 1 addition & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { useSelector, useDispatch } from "react-redux";
import { BrowserRouter as Router, Route } from "react-router-dom";
import { IStoreState } from "./store/shared";
import { updateUserId } from "./store/global";
import Home from "./pages/home";
import Home from "./pages/Home";

const App = () => {
const global = useSelector((state: IStoreState) => ({
Expand Down
2 changes: 1 addition & 1 deletion src/store/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { createStore, combineReducers, applyMiddleware, compose } from "redux";
import logger from "redux-logger";
import thunk from "redux-thunk"
import globalReducer from "./global";
import homeReducer from "../pages/home/flow";
import homeReducer from "../pages/Home/flow";
import { IStoreState } from "./shared";

const reducers = combineReducers<IStoreState>({
Expand Down
2 changes: 1 addition & 1 deletion src/store/shared.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { IGlobal } from "./global";
import { IHomePage } from "../pages/home/flow";
import { IHomePage } from "../pages/Home/flow";


export interface IStoreState {
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -10347,10 +10347,10 @@ typescript-tuple@^2.2.1:
dependencies:
typescript-compare "^0.0.2"

typescript@3.6.3:
version "3.6.3"
resolved "https://registry.npmjs.org/typescript/-/typescript-3.6.3.tgz#fea942fabb20f7e1ca7164ff626f1a9f3f70b4da"
integrity sha512-N7bceJL1CtRQ2RiG0AQME13ksR7DiuQh/QehubYcghzv20tnh+MQnQIuJddTmsbqYj+dztchykemz0zFzlvdQw==
typescript@3.8.2:
version "3.8.2"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.8.2.tgz#91d6868aaead7da74f493c553aeff76c0c0b1d5a"
integrity sha512-EgOVgL/4xfVrCMbhYKUQTdF37SQn4Iw73H5BgCrF1Abdun7Kwy/QZsE/ssAy0y4LxBbvua3PIbFsbRczWWnDdQ==

[email protected]:
version "3.4.10"
Expand Down