私は反応が新しく、this boilerplateを使用してアプリを作成しています。 は、私が代わりにhashHistoryのbrowserHistoryを使用していたので、私は/app/index.js
にこれらの変更を行った:hashHistoryをbrowserHistoryに置き換え中にエラーが発生しました:react
// @flow
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, combineReducers } from 'redux';
import { Router, browserHistory } from 'react-router';
import { syncHistoryWithStore, routerReducer } from 'react-router-redux';
import routes from './routes';
import configureStore from './store/configureStore';
import './app.global.css';
const store = createStore(
combineReducers({
routing: routerReducer
})
);
const history = syncHistoryWithStore(browserHistory, store);
ReactDOM.render(
<Provider store={store}>
<Router history={history} routes={routes} />
</Provider>,
document.getElementById('root')
);
私はこの警告取得しています:
Warning: [react-router] Location "/home/cortana/Projects/JSProjects/gobbledigook/app/app.html" did not match any routes
をとルートによって記述以下のページが表示されていません。ここで欠けているものと、このアプリではなくhashHistoryを削除してbrowserHistoryを使用するために他に何が必要ですか?
あなたの答えを編集してください。今のように、それは文脈のない単なる提案です。 StackOverflowの[良い答えを書く方法](http://stackoverflow.com/help/how-to-answer)、特に、「リンクのコンテキストを提供する」のセクションを参照してください。 – jacefarm