GithubHelp home page GithubHelp logo

[ERROR] node app.js command about mozaik HOT 20 CLOSED

plouc avatar plouc commented on July 18, 2024
[ERROR] node app.js command

from mozaik.

Comments (20)

plouc avatar plouc commented on July 18, 2024 3

@jtbonhomme, the yeoman generator does not work, sorry, I should mark it as deprecated on the website and the repo. You should use the mozaik-demo instead.

from mozaik.

alexandregodard avatar alexandregodard commented on July 18, 2024 2

This solution help me
http://www.guyellisrocks.com/2015/11/babel-cannot-read-property-error-of.html
remove all files .babelrc in node-modules subdir

from mozaik.

plouc avatar plouc commented on July 18, 2024

Ok, you got an error using babel :) some context could be useful, I have no idea what's your actual setup, node version, Mozaïk version, activated extensions…

from mozaik.

benathmane avatar benathmane commented on July 18, 2024

Thanks,
npm version : v3.8.6
Mozaik version : v1.4.4
node version : v6.1.0
Activated extesions : mozaik-ext-jenkins

from mozaik.

t3db0t avatar t3db0t commented on July 18, 2024

Hm, I'm getting this exact same error but I don't have a .babelrc file at all. What else can I check?

npm 3.9.3
Mozaik 1.4.4
node 6.2.1
Babel 6.5.2 / babel-core 6.9.1

from mozaik.

alexandregodard avatar alexandregodard commented on July 18, 2024

Hi,

you need to have at least one .babelrc file on your root application with :
{
"presets": ["es2015", "react" ],
}

from mozaik.

t3db0t avatar t3db0t commented on July 18, 2024

I did that, and rebuilt, but I'm still getting the same error. Arggghhhhh.

from mozaik.

t3db0t avatar t3db0t commented on July 18, 2024

Hm, I just noticed that package.json lists babel": "^5.8.12" but I have 6.5.2. I tried downgrading and various combinations of .babelrc present or in different directories, nothing worked, same error every time. I tried changing the version required in package.json to 6.5.2 and then I get Error: Cannot find module 'babel/register'. I tried to fix that but it was just more and more new errors. Still haven't been able to run the app.

from mozaik.

plouc avatar plouc commented on July 18, 2024

@t3db0t, is this issue still relevant ?

from mozaik.

t3db0t avatar t3db0t commented on July 18, 2024

I haven't tried since then, but I never got it to work

from mozaik.

GordianDziwis avatar GordianDziwis commented on July 18, 2024

@plouc I got it, too

from mozaik.

benathmane avatar benathmane commented on July 18, 2024

@BonarBeavis This solution help me
http://www.guyellisrocks.com/2015/11/babel-cannot-read-property-error-of.html
remove all files .babelrc in node-modules subdir

from mozaik.

wonderchang avatar wonderchang commented on July 18, 2024

@benathmane But after removing them, the command gulp build become failed, this is not friendly when developing.

from mozaik.

jtbonhomme avatar jtbonhomme commented on July 18, 2024

Same error for me:

node v0.10.28
npm 3.10.7
Mac OS X 10.12
[email protected]
[email protected]

I followed the instructions :

% npm install -g yo gulp generator-mozaik
% yo mozaik
% npm install
% gulp build
% node app.js

/Users/jbonhomm/Dropbox/dashboards/mozaik/node_modules/babel-core/lib/transformation/file/options/option-manager.js:126
      if (!option) this.log.error("Unknown option: " + alias + "." + key, Refe
                            ^
TypeError: Cannot call method 'error' of undefined
    at OptionManager.mergeOptions (/Users/jbonhomm/Dropbox/dashboards/mozaik/node_modules/babel-core/lib/transformation/file/options/option-manager.js:126:29)
    at OptionManager.addConfig (/Users/jbonhomm/Dropbox/dashboards/mozaik/node_modules/babel-core/lib/transformation/file/options/option-manager.js:107:10)
    at OptionManager.findConfigs (/Users/jbonhomm/Dropbox/dashboards/mozaik/node_modules/babel-core/lib/transformation/file/options/option-manager.js:168:35)
    at OptionManager.init (/Users/jbonhomm/Dropbox/dashboards/mozaik/node_modules/babel-core/lib/transformation/file/options/option-manager.js:229:12)
    at compile (/Users/jbonhomm/Dropbox/dashboards/mozaik/node_modules/babel-core/lib/api/register/node.js:117:22)
    at normalLoader (/Users/jbonhomm/Dropbox/dashboards/mozaik/node_modules/babel-core/lib/api/register/node.js:199:14)
    at Object.require.extensions.(anonymous function) [as .js] (/Users/jbonhomm/Dropbox/dashboards/mozaik/node_modules/babel-core/lib/api/register/node.js:216:7)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)

from mozaik.

jtbonhomme avatar jtbonhomme commented on July 18, 2024

Ok Raphaël, thank you for your answer !

Envoyé de mon iPhone

Le 27 oct. 2016 à 14:15, Raphaël Benitte [email protected] a écrit :

@jtbonhomme, the yeoman generator does not work, sorry, I should mark it as deprecated on the website and the repo. You should use the mozaik-demo instead.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

from mozaik.

ududsha avatar ududsha commented on July 18, 2024

Got the same error under the same condition which @jtbonhomme mentioned. Any solution found by anyone?

from mozaik.

juhamust avatar juhamust commented on July 18, 2024

@ududsha are you using mozaik-demo or yeoman generator as a base? If latter, use the mozaik-demo instead.

from mozaik.

plouc avatar plouc commented on July 18, 2024

I've removed the reference to yeoman generator from the README and website.

from mozaik.

nixchikleo avatar nixchikleo commented on July 18, 2024

@plouc the references are still on the website: does this mean they are current now? https://www.npmjs.com/package/mozaik
due to bureaucracy etc I cannot use the demo for a few days. was there ever anyway to fix error thrown by the generator? For now i just commented out the line that checks for an invalid option and throws an error message to get it to deploy. But is there a better solution?

from mozaik.

plouc avatar plouc commented on July 18, 2024

Removed the ref to generator => https://github.com/plouc/mozaik/blob/master/README.md

from mozaik.

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.