Coder Social home page Coder Social logo

Comments (7)

tothandras avatar tothandras commented on July 19, 2024

I am not sure if I understand it right, but graffiti-mongoose is transpiled to ES5, if you install it using npm, it shouldn't be a problem.

from graffiti-mongoose.

nha avatar nha commented on July 19, 2024

You understood right. Is there a way for me to get rid of that error ?

/node_modules/@risingstack/graffiti/src/koa/index.js:14
    return function *(next) {
                    ^
SyntaxError: Unexpected token *
    at exports.runInThisContext (vm.js:73:16)
    at Module._compile (module.js:443:25)
    at Module._extensions..js (module.js:478:10)

from graffiti-mongoose.

nha avatar nha commented on July 19, 2024

It looks like it should be possible using babel-node arguments, but I am fuzzy on the details and asked a question there : http://stackoverflow.com/questions/33174008/babel-node-not-ignore-some-node-modules

from graffiti-mongoose.

hekike avatar hekike commented on July 19, 2024

@nha hi it's a generator function. You don't need babel for that just use the latest Node.js: 4.x.x

from graffiti-mongoose.

nha avatar nha commented on July 19, 2024

@hekike Ah thanks let me try that.

from graffiti-mongoose.

nha avatar nha commented on July 19, 2024

Alright it seems to solve the issue (I have another one related to gyp-rebuild and probably osx but it seems unrelated so I will close this issue). Thanks @hekike.

from graffiti-mongoose.

hekike avatar hekike commented on July 19, 2024

@nha ok, sure! Probably you need to update some of your packages and I also recommend to remove node_modules folder and npm install it again because the updated node-gyp. More info here: https://nodejs.org/en/blog/weekly-updates/weekly-update.2015-09-04/

from graffiti-mongoose.

Related Issues (20)

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.