Code Monkey home page Code Monkey logo

fepper's People

Contributors

e2tha-e avatar electric-el avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

fepper's Issues

FIXED: Node v10 Error: node_contextify.cc Assertion `args[1]->IsString()' failed

After installing fepper-cli I run npm install and am presented with the following error.
Any ideas how to resolve this ?

After the error, when I search for source in the test project, I find 2 directories :

[bobbybabes@ladyluck 4.4.23 fepper-test]# find . -iname 'source'
./node_modules/fepper/excludes/profiles/main/source
./node_modules/fepper/excludes/profiles/base/source

The error :

[bobbybabes@ladyluck 4.4.23 fepper-test]# npm install

> @0.4.2 postinstall /home/bobbybabes/dev/web/fepper-test
> node run/install.js

[15:56:13] Working directory changed to ~/dev/web/fepper-test/node_modules/fepper
gulp[29679]: ../src/node_contextify.cc:635:static void node::contextify::ContextifyScript::New(const v8::FunctionCallbackInfo<v8::Value>&): Assertion `args[1]->IsString()' failed.
 1: 0x557228e10d61 node::Abort() [gulp]
 2: 0x557228e10e5b  [gulp]
 3: 0x557228e406c4 node::contextify::ContextifyScript::New(v8::FunctionCallbackInfo<v8::Value> const&) [gulp]
 4: 0x55722904ab1f  [gulp]
 5: 0x55722904b21f  [gulp]
 6: 0xc8f4cc841bd 
fs.js:119
    throw err;
    ^

Error: ENOENT: no such file or directory, scandir 'source'
    at Object.readdirSync (fs.js:759:3)
    at Object.<anonymous> (/home/bobbybabes/dev/web/fepper-test/run/install.js:71:29)
    at Module._compile (internal/modules/cjs/loader.js:689:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
    at Module.load (internal/modules/cjs/loader.js:599:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
    at Function.Module._load (internal/modules/cjs/loader.js:530:3)
    at Function.Module.runMain (internal/modules/cjs/loader.js:742:12)
    at startup (internal/bootstrap/node.js:266:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:596:3)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @0.4.2 postinstall: `node run/install.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the @0.4.2 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/bobbybabes/.npm/_logs/2018-07-23T13_56_14_244Z-debug.log

fepper-npm-install-error_screenshot_20180723_163436

CSS preprocessing (e.g. Less, Sass, Stylus)

@BobbyBabes I'm opening this issue regarding your mention of Less and Sass in #13 and to provide some guidance to anyone else who may be interested.

A normal Fepper installation (v0.5+) includes an enabled fp-stylus extension. Out-of-the-box, you can edit the stock Stylus code in source/_styles/src/stylus, and Fepper will watch changes, preprocess the Stylus into CSS, and inject the CSS into the browser.

You are by no means married to Stylus. I published fp-less and fp-sass as well. Steps to install (using Less as an example):

  • cd extend
  • npm install --save-dev fp-less
  • Edit contrib.js
  • Replace stylus:frontend-copy with less:frontend-copy
  • Replace stylus:once with less:once
  • Replace stylus:watch with less:watch
  • Quit editting contrib.js
  • Replace the source/_styles/src/stylus directory with a source/_styles/src/less directory

FIXED: Node 11 Error: ReferenceError: internalBinding is not defined

As of Node 11.0.0, users will get this error runningrequire('gulp') (3.9.1). Fepper requires gulp for running tasks, and for providing the architecture for extensions.

fs.js:25
'use strict';
^

ReferenceError: internalBinding is not defined
    at fs.js:25:1
    at req_ (/Users/ee/Sites/Vagrant/Trusty64/VHosts/electric-eloquence/Other/Fepper-install-test/fepper-base/node_modules/natives/index.js:137:5)
    at Object.req [as require] (/Users/ee/Sites/Vagrant/Trusty64/VHosts/electric-eloquence/Other/Fepper-install-test/fepper-base/node_modules/natives/index.js:54:10)
    at Object.<anonymous> (/Users/ee/Sites/Vagrant/Trusty64/VHosts/electric-eloquence/Other/Fepper-install-test/fepper-base/node_modules/vinyl-fs/node_modules/graceful-fs/fs.js:1:99)
    at Module._compile (internal/modules/cjs/loader.js:707:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:718:10)
    at Module.load (internal/modules/cjs/loader.js:605:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:544:12)
    at Function.Module._load (internal/modules/cjs/loader.js:536:3)
    at Module.require (internal/modules/cjs/loader.js:643:17)

Fepper has no immediate plans to upgrade gulp beyond 3.x.x. The existing gulp plugin ecosystem was not developed with 4.x.x forward-compatibility in mind. Whether the ecosystem moves itself along to 4.x.x-compatibility is uncertain.

Nonetheless, a solution is being worked out and we will do everything possible to make Fepper compatible with the latest Node version. In the meantime, those on Node 11.x.x will need to downgrade their Node version.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.