Comments (14)
you have to run the command: npm run build-assets
from mozaik-demo.
same issue (node 4.6.1 , npm 2.15.9)
from mozaik-demo.
Mozaïk requires npm@3, let me know if it solve the problem
from mozaik-demo.
yes it did, thanks! I could proceed in the installation.
Only now when I try to run the app I get
mozaik-demo ♥ node app.js
info: registered API 'mozaik' (mode: poll)
info: registered API 'github' (mode: poll)
info: registered API 'travis' (mode: poll)
error: weather.apiToken: must be of type String
from mozaik-demo.
same issue here (node 4.6.1 , npm 3.10.9)
the same error even with: (node 6.9.2, npm 3.10.9)
from mozaik-demo.
@zufanka, @gmarab, the weather extension requires a token to be functionnal, see https://github.com/plouc/mozaik-ext-weather. When I first started the extension, it was not the case, it's quite annoying now, I'll probably remove it from the demo.
from mozaik-demo.
And the openweathermap doc: https://openweathermap.org/appid
from mozaik-demo.
if you don't want to create an account, you can remove the extension from the demo, you'll have to edit https://github.com/plouc/mozaik-demo/blob/master/src/App.jsx, https://github.com/plouc/mozaik-demo/blob/master/src/server.js and https://github.com/plouc/mozaik-demo/blob/master/config.js, just remove all references to mozaik-ext-weather
from mozaik-demo.
Sorry @plouc, I meant that I have the same problem as @ruionwriting, the one that opened the thread.
I get the error during install npm
from mozaik-demo.
@gmarab, unfortunately, I don't have a window VM now, but only the post install failed, you should be able to build the assets by just running npm run build
, which is the postinstall action.
from mozaik-demo.
Thank you @plouc , using npm run build-assets now works.
from mozaik-demo.
+1 for removing ext-weather from the demo project. It causes the demo to fail out of the box, and there are enough other example widgets without it.
from mozaik-demo.
Hi there,
I faced the same problem as @zufanka being unable to run the app and receiving the following error: 'weather.apiToken: must be of type String' when trying to build the demo dashboard.
Even replacing the 'xxxxx' from the WEATHER_API_TOKEN in the .env file by the API key (APPID) which is generated by openweathermap.org (you need to create an account + sign in to get the API-key) didnt help. The mozaik-demo was still not working @plouc .
So what I did and what solved it was simply setting the default value of the apiToken in the config.js file from null to the API key (APPID) that is generated by openweathermap.
You can find the config.js file in the source-folder which is located in the following directory: mozaik-demo -> node_modules -> mozaik-ext-weather -> src -> config.js
In that config.js you need to change the default value of the apiToken from null into the API key and after doing that everything worked as expected.
Hope that helps
from mozaik-demo.
mozaik-ext-weather
removed by f070085
from mozaik-demo.
Related Issues (13)
- Demo v2 does not start HOT 5
- Mozaik dependency in v2 demo doesn't appear to be available on github HOT 5
- [v2] Dash auto rotation config is set to ms when it should be seconds. HOT 2
- Documentation incorrect - Post install script should be "npm run build-assets"
- Server fails to start [v2] HOT 4
- v2 start React error HOT 2
- Should include an example .env file HOT 1
- How to create a production build? HOT 3
- Yarn start does not run the API, causing an error after the client loads. HOT 4
- High Vurnability count
- Font Awesome assets not copied during build task HOT 3
- Don't require a weather API to test the demo 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-demo.