Open zwzy opened 5 years ago
1、const store = createStore(enthusiasm, { enthusiasmLevel: 1, languageName: 'TypeScript', });
2、import { connect, Dispatch } from 'react-redux';
package.json "@types/jest": "24.0.3", "@types/node": "11.9.3", "@types/react": "16.8.2", "@types/react-dom": "16.8.0", "@types/react-redux": "^7.0.1", "react": "^16.8.1", "react-dom": "^16.8.1", "react-redux": "^6.0.0", "react-scripts": "2.1.5", "redux": "^4.0.1", "typescript": "3.3.3"
I ran into what I think might be similar issues. This changes mentioned in https://github.com/Microsoft/TypeScript-React-Starter/issues/240#issuecomment-443954408 solved them for me.
1、const store = createStore(enthusiasm, {
enthusiasmLevel: 1,
languageName: 'TypeScript',
});
2、import { connect, Dispatch } from 'react-redux';
package.json "@types/jest": "24.0.3", "@types/node": "11.9.3", "@types/react": "16.8.2", "@types/react-dom": "16.8.0", "@types/react-redux": "^7.0.1", "react": "^16.8.1", "react-dom": "^16.8.1", "react-redux": "^6.0.0", "react-scripts": "2.1.5", "redux": "^4.0.1", "typescript": "3.3.3"