reactjs


React Router no input file specified


I'm using react-router to navigate my page to auth page. Here is my code:
import React, {Component} from 'react';
import ReactDOM from 'react-dom';
import {Provider} from 'react-redux';
import {createStore, applyMiddleware} from 'redux';
import {Router, Route, IndexRoute, browserHistory} from 'react-router';
import reducers from './reducers';
import App from './components/app';
import Authenticate from './components/auth/index';
import Login from './components/auth/login';
ReactDOM.render(
<Provider store={createStoreWithMiddleware(reducers)}>
<Router history={browserHistory}>
<Route path="authenticate">
<IndexRoute component={Login} />
<Route path="/login" component={Login}/>
</Route>
<Route path="/" component={App}>
<IndexRoute component={Login} />
</Route>
</Router>
</Provider>
, document.querySelector('.container')
);
ReactDOM.render(
<Provider store={createStoreWithMiddleware(reducers)}>
<Router history={browserHistory}>
<Route path="/authenticate" component={Authenticate}>
<IndexRoute component={Login} />
<Route path="login" component={Login}/>
</Route>
<Route path="/" component={App}>
</Route>
</Router>
</Provider>
, document.querySelector('.container')
);
The problem is every time I navigate to authenticate/login it always say No input file specified.. But if I navigate to / it works properly
Any solution?

Related Links

How to create a custom layout/theme for swagger-ui 3.x
React-Redux best practice to change auth state
How can I test the text of a child element in enzyme?
Dynamic copies of Reducer in Redux
How to create privaterouter by extending Route
Why am I getting a parsing error in this React component code?
Changing route with react Router 4 from child
React WebPack Live Update not working
Change language to “+2 more” link in react-big-calendar
TypeError: 'undefined' is not a function (evaluating 'Object.entries(opts)') only on safari
Apollo mutation not appearing in props
What is the best way to apply a default set of values on an array in redux, but only on initial load?
React Script Proxy not working
I am getting an “Invalid Host header” message, when running my React app in a Webpack dev server on Cloud9.io
How do I Make and Use React components?
React-Router V4 - server rendering works only on one machine

Categories

HOME
botframework
alasql
locale
postgresql-9.3
android-ndk
django-middleware
cryengine
nltk
confluence-rest-api
docker-compose
meson-build
install
ios-universal-links
olap
core-data
facebook-sharer
adroitlogic
resharper
browsermob
eclipse-orion
appsettings
ofbiz
virtuemart
lotusscript
fastboot
aws-iot
quality-center
apdu
pixels
jbossfuse
spring-data-gemfire
2checkout
andengine
spring-oauth2
wercker
unity3d-5
gitosis
dom4j
pymunk
respect-validation
abide
latency
susy
bzip2
datagridviewcombobox
colorbox
libzip
intervention
smooth-streaming
html-entities
android-doze-and-standby
npoco
remap
confluent
pyopenssl
evaluation
skype-bots
node-java
android-vectordrawable
dynatable
timex
sharing
copy-constructor
ownership
archiva
mod
pebble-js
ooad
clear
web-performance
dynamics-nav-2013
gulp-cdnizer
log4cxx
eula
genero
pymol
shunting-yard
dojox.grid
jsmpp
google-mirror-api
fade
pechkin
kohana-orm
kademlia
http-compression
gssapi
mail-gem
netbiscuits
big-endian
certificate-revocation
ios6-maps
project-files
overlays
sipdroid
virtual-destructor
nyromodal
table-valued-parameters
jquery-attributes
dongle
opengl-to-opengles
wtsapi32
software-update

Resources

Encrypt Message