scotchfield / elasticsearch-react-example Goto Github PK
View Code? Open in Web Editor NEWAn example project showing how to use Elasticsearch with React
License: GNU General Public License v3.0
An example project showing how to use Elasticsearch with React
License: GNU General Public License v3.0
Any idea what's wrong here? I did npm install
, webpack
, and also tried npm install navigator
but still getting this;
$ node index.js
C:\git\elasticsearch-react-example\index.js:40640
var asyncDefault = !(navigator && /PhantomJS/i.test(navigator.userAgent));
^
ReferenceError: navigator is not defined
at Object.module.exports (C:\git\elasticsearch-react-example\index.js:40640:23)
at __webpack_require__ (C:\git\elasticsearch-react-example\index.js:20:30)
at Object.module.exports (C:\git\elasticsearch-react-example\index.js:40599:9)
at __webpack_require__ (C:\git\elasticsearch-react-example\index.js:20:30)
at Object.<anonymous> (C:\git\elasticsearch-react-example\index.js:40259:37)
at Object.<anonymous> (C:\git\elasticsearch-react-example\index.js:40546:31)
at __webpack_require__ (C:\git\elasticsearch-react-example\index.js:20:30)
at Object.<anonymous> (C:\git\elasticsearch-react-example\index.js:20051:10)
at Object.<anonymous> (C:\git\elasticsearch-react-example\index.js:20394:31)
at __webpack_require__ (C:\git\elasticsearch-react-example\index.js:20:30)
Hi @scotchfield ,
First - thank you for this repo. It is just what I was looking for!
But due to the createClass deprecation, it does not work anymore :(
1.) I added my ElasticSearch 5.x Index to the query - and it works with in "react": "^0.14.5" beautifully:
https://github.com/mpolinowski/elasticsearch-react-example#update-to-a-elasticsearch-5x-index
2.) But I cannot get it to work in React v16 - I am getting an error message about propTypes/defaultProps:
https://github.com/mpolinowski/elasticsearch-react-example#es6-class-syntax
Do you have an idea what I am doing wrong there? I tried a couple of StackOverflow solutions... but I am stuck right now.
Cheers Mike
you forgot to add webpack-dev-server in package.json
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.