jondashkyle / choo-dat-hypha Goto Github PK
View Code? Open in Web Editor NEWA Choo plugin for reading a content directory with Hypha
A Choo plugin for reading a content directory with Hypha
Hi,
this might be a dumb error, as I am poking with node.js
and choo.js
only for a few times now, and have not yet an idea of how to set things up.
What I do is:
npx create-choo-app <project-directory>
cd <project-directory> && npm i choo-dat-hypha
hypha
module to choo.js
and make a content
folder with an index.txt
, plus one sub-folder with an index.txt
as well (and some text fields inside each text file).app.use(require('choo-dat-hypha')('/content'))
to index.js
; I make a new wrapper.js
file in /views
, do npm install xtend
and use the wrapper.js
module in views/main.js
I run npm start
and get the following error log (running node v8.7.0
)
A critical error occured, forcing Bankai to abort:
npm ERR! code ELIFECYCLE
npm ERR! errno 1t set property 'error' of undefined
npm ERR! [email protected] start: `bankai start index.js`n/node_modules/choo-dat-hypha/npm ERR! Exit status 1
npm ERR! ore (/Users/xx/xx/tekken/node_modules/choo-dat-hypha/index.jsnpm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.nonymous> (/Users/xx/xx/tekken/index.js:8:5)
at Module._compile (module.js:624:30)
npm ERR! A complete log of this run can be found in:10)
npm ERR! /Users/xx/.npm/_logs/2018-01-09T22_38_25_092Z-debug.log
~/xx/tekken (master) $ :508:12)
at Function.Module._load (module.js:500:3)
at Module.require (module.js:568:17)
Before I get this error, another error appears
TypeError: Cannot set property 'error' of undefined
at createArchive (/Users/xx/xx/tekken/node_modules/choo-dat-hypha/index.js:56:27)
at store (/Users/xx/xx/tekken/node_modules/choo-dat-hypha/index.jsscripts:browserify.bundle unsupported type for static module: Property
at expression:
fs: fs
while parsing file: /Users/xx/xx/tekken/node_modules/hypha/index.js
Error: unsupported type for static module: Property
at expression:
fs: fs
while parsing file: /Users/xx/xx/tekken/node_modules/hypha/index.js
at traverse (/Users/xx/xx/tekken/node_modules/static-module/index.js:318:34)
at walk (/Users/xx/xx/tekken/node_modules/static-module/index.js:224:18)
at walk (/Users/xx/xx/tekken/node_modules/falafel/index.js:49:9)
at /Users/xx/xx/tekken/node_modules/falafel/index.js:46:17
at forEach (/Users/xx/xx/tekken/node_modules/foreach/index.js:12:16)
at walk (/Users/xx/xx/tekken/node_modules/falafel/index.js:34:9)
at /Users/xx/xx/tekken/node_modules/falafel/index.js:41:25
at forEach (/Users/xx/xx/tekken/node_modules/foreach/index.js:12:16)
at /Users/xx/xx/tekken/node_modules/falafel/index.js:39:17
at forEach (/Users/xx/xx/tekken/node_modules/foreach/index.js:12:16)
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.