Comments (20)
@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.
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.
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.
Thanks,
npm version : v3.8.6
Mozaik version : v1.4.4
node version : v6.1.0
Activated extesions : mozaik-ext-jenkins
from mozaik.
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.
Hi,
you need to have at least one .babelrc file on your root application with :
{
"presets": ["es2015", "react" ],
}
from mozaik.
I did that, and rebuilt, but I'm still getting the same error. Arggghhhhh.
from mozaik.
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.
@t3db0t, is this issue still relevant ?
from mozaik.
I haven't tried since then, but I never got it to work
from mozaik.
@plouc I got it, too
from mozaik.
@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.
@benathmane But after removing them, the command gulp build
become failed, this is not friendly when developing.
from mozaik.
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.
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.
Got the same error under the same condition which @jtbonhomme mentioned. Any solution found by anyone?
from mozaik.
@ududsha are you using mozaik-demo or yeoman generator as a base? If latter, use the mozaik-demo instead.
from mozaik.
I've removed the reference to yeoman generator from the README and website.
from mozaik.
@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.
Removed the ref to generator => https://github.com/plouc/mozaik/blob/master/README.md
from mozaik.
Related Issues (20)
- [Enhancement] Keyboard support to switch dashboards (space, left, right) HOT 1
- [Enhancement] Serve multiple dashboards based on config file HOT 1
- Navigation between dashboards HOT 3
- build failed when jsx syntax added HOT 1
- error while using widget ui component HOT 1
- Display json data
- Extension Tutorial for V2 HOT 1
- External/Automatic reload of Dashboard configuration HOT 1
- Proxy error: Could not proxy request /config from localhost:3000 to http://localhost:5000. HOT 1
- Demo disappears after a few seconds, then returns... HOT 1
- Insert JS in widget or dashboard
- how to run Mozaik with ASP Core backend HOT 3
- Error in npm-install mozaik demo.
- engine.io client requires ES6 to build HOT 3
- Demo is down HOT 1
- Is the demo down? HOT 1
- localhost:5000 refused to connect postman windows 64bit
- Proxy error: Could not proxy request /api/products/top from localhost:3000 to http://localhost:8000/. See https://nodejs.org/api/errors.html#errors_common_system_errors for more information (ECONNREFUSED).
- Proxy error: Could not proxy request /api/workouts from localhost:3001 to http://localhost:3001/ (ECONNREFUSED).
- Demo hosted on Heroku doesn't work HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mozaik.