Skip to content

Instantly share code, notes, and snippets.

View zacck-zz's full-sized avatar
Lemur Heavy

Zacck Osiemo zacck-zz

Lemur Heavy
View GitHub Profile
webpack-dev-server
module.js:442
throw err;
^
Error: Cannot find module 'webpack'
at Function.Module._resolveFilename (module.js:440:15)
at Function.Module._load (module.js:388:25)
at Module.require (module.js:468:17)
at require (internal/module.js:20:19)
/**
* This config file is provided as a convenience for development. You can either
* set the environment variables on your server or modify the values here.
*
* At a minimum, you must set FB_URL and Paths to Monitor. Everything else is optional, assuming your
* ElasticSearch server is at localhost:9200.
*/
/** Firebase Settings
***************************************************/
Uncaught Error: Module build failed:
@import 'util/util';
^
File to import not found or unreadable: util/util.
Parent style sheet: /Users/zacck/Documents/www/cibo/src/styles/base/_foundation-settings.scss
in /Users/zacck/Documents/www/cibo/src/styles/base/_foundation-settings.scss (line 43, column 1)
at eval (eval at <anonymous> (app.bundle.js:1162), <anonymous>:1:7)
at Object.<anonymous> (app.bundle.js:1162)
at __webpack_require__ (app.bundle.js:20)
at eval (eval at <anonymous> (app.bundle.js:1938), <anonymous>:4:15)
/**
* This config file is provided as a convenience for development. You can either
* set the environment variables on your server or modify the values here.
*
* At a minimum, you must set FB_URL and Paths to Monitor. Everything else is optional, assuming your
* ElasticSearch server is at localhost:9200.
*/
/** Firebase Settings
***************************************************/
//let us attempt to start the cluster
var elasticsearch = require('elasticsearch');
var conf = require('../config');
var fbutil = require('../lib/fbutil');
var PathMonitor = require('../lib/PathMonitor');
var SearchQueue = require('../lib/SearchQueue');
var escOptions = {
hosts: [{
host: conf.ES_HOST,
Navigated to https://backendjtx.herokuapp.com/
app.bundle.js:32 Configured using BONSAI_URL environment variable https://xxxxxxxx-1525933.us-east-1.bonsaisearch.net Object {FB_URL: "https://jets-backennd.firebaseapp.com", FB_REQ: "search/request", FB_RES: "search/response", FB_SERVICEACCOUNT: "service-account.json", ES_HOST: "xxxx.us-east-1.bonsaisearch.net"…}
app.bundle.js:128 Connecting to ElasticSearch host xxxxx.us-east-1.bonsaisearch.net:80
app.bundle.js:3 search -K_DXZJLEyYkNS-hKhU2 Object {index: "firebase", type: "supplier", q: "Kaya"}
app.bundle.js:43 Mixed Content: The page at 'https://xxxx.herokuapp.com/#/?_k=lfl7rl' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://xxxx.us-east-1.bonsaisearch.net/'. This content should also be served over HTTPS.
r.request @ app.bundle.js:43
r @ app.bundle.js:8
l.applyArgs @ app.bundle.js:2
p @ app.bundle.js:24
l.run @ app.bundle.js:3
Configured using BONSAI_URL environment variable https://qc7shwwr:[email protected] Object {FB_URL: "https://jets-backennd.firebaseapp.com/suppliers", FB_REQ: "search/request", FB_RES: "search/response", FB_SERVICEACCOUNT: "service-account.json", ES_HOST: "ash-1525933.us-east-1.bonsaisearch.net"…}
app.bundle.js:128 Connecting to ElasticSearch host ash-1525933.us-east-1.bonsaisearch.net:80
app.bundle.js:76 0: set {"path":"/search/request/-K_IY8OVePqW5p7aeXAw","value":{"index":"firebase","type":"supplier","q":"Kaya"},"ug":null}
app.bundle.js:76 p:0: Buffering put: /search/request/-K_IY8OVePqW5p7aeXAw
app.bundle.js:3 search -K_IY8OVePqW5p7aeXAw Object {index: "firebase", type: "supplier", q: "Kaya"}
app.bundle.js:76 p:0: Listen called for /search/response/-K_IY8OVePqW5p7aeXAw default
app.bundle.js:76 p:0: Auth token refreshed
app.bundle.js:76 p:0: Making a connection attempt
app.bundle.js:76 getToken() completed. Creating connection.
app.bundle.js:76 c:0
rateperiods.map((period) => {
var filteredCosts = ratecosts.filter((cost) => {
return cost.rate_period == period.id ;
});
if(filteredCosts.length === 0 ){
return(<p>No Periods for supplier yet</p>)
}
return filteredCosts.map((costdata) => {
return(
<div className="row">
{/*Main component will always be rendered*/}
<Route path="/" component={HapiHour}>
<IndexRoute
getComponent={(location, cb) =>{
System.import('LandingMap')
.then(loadRoute(cb))
.catch(errorLoading);
}}
/>
{/*Add Routes here */}
{
"rules": {
".read": "auth !=null",
".write": "auth !=null",
"locations": {
".indexOn" : ["g"]
}
}
}