Giter Club home page Giter Club logo

Comments (14)

zack319 avatar zack319 commented on July 21, 2024 3

you have to run the command: npm run build-assets

from mozaik-demo.

zufanka avatar zufanka commented on July 21, 2024

same issue (node 4.6.1 , npm 2.15.9)

from mozaik-demo.

plouc avatar plouc commented on July 21, 2024

Mozaïk requires npm@3, let me know if it solve the problem

from mozaik-demo.

zufanka avatar zufanka commented on July 21, 2024

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.

gmarab avatar gmarab commented on July 21, 2024

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.

plouc avatar plouc commented on July 21, 2024

@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.

plouc avatar plouc commented on July 21, 2024

And the openweathermap doc: https://openweathermap.org/appid

from mozaik-demo.

plouc avatar plouc commented on July 21, 2024

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.

gmarab avatar gmarab commented on July 21, 2024

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.

plouc avatar plouc commented on July 21, 2024

@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.

gmarab avatar gmarab commented on July 21, 2024

Thank you @plouc , using npm run build-assets now works.

from mozaik-demo.

danbars avatar danbars commented on July 21, 2024

+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.

Easyman123 avatar Easyman123 commented on July 21, 2024

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.

plouc avatar plouc commented on July 21, 2024

mozaik-ext-weather removed by f070085

from mozaik-demo.

Related Issues (13)

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.