lingomat / bomradar Goto Github PK
View Code? Open in Web Editor NEWAustralian BOM weather radar web component
Australian BOM weather radar web component
Either its broken or instructions are unclear.
I have been able to get 'npm' i to run without issues but when it comes to 'npm' s the build fails. perhaps i'm missing a step but i cant figure it out.
[email protected] start
stencil build --dev --watch --serve
[13:14.1] @stencil/core
[13:15.6] v2.12.1 ๐
[13:29.3] build, bomradar, dev mode, started ...
[13:29.4] transpile started ...
[13:39.5] transpile finished in 10.06 s
[13:40.0] build, bomradar, dev mode, started ...
[13:40.0] transpile started ...
[13:54.1] transpile finished in 14.04 s
[ ERROR ] TypeScript: ./src/components/bomradar/bomradar.tsx:50:9
Expected 1 arguments, but got 0. Did you forget to include 'void' in your type argument to
'Promise'?
L49: setTimeout(() => {
L50: resolve()
L51: }, sec * 1000)
[ ERROR ] Missing "h" import for JSX types: ./src/components/bomradar/bomradar.tsx:1:40
In order to load accurate JSX types for components, the "h" function must be imported from
"@stencil/core" by each component using JSX. For example: import { Component, h } from
'@stencil/core';
L1: import { Component, Prop, State, Method } from '@stencil/core';
L2: import { BOMData } from "./bomdata"
[ WARN ] @method requires async: ./src/components/bomradar/bomradar.tsx:90:3
External @method() setOverlays() must return a Promise. Consider prefixing the method with async,
such as @method() async setOverlays().
L89: @Method()
L90: setOverlays(ovl: string[]) {
L91: if (!Array.isArray(ovl)) {
[ WARN ] @method requires async: ./src/components/bomradar/bomradar.tsx:103:3
External @method() stop() must return a Promise. Consider prefixing the method with async, such as
@method() async stop().
L102: @Method()
L103: stop() {
L104: this.stopped = true
[ WARN ] @method requires async: ./src/components/bomradar/bomradar.tsx:118:3
External @method() setFPS() must return a Promise. Consider prefixing the method with async, such
as @method() async setFPS().
L117: @Method()
L118: setFPS(fps: number) {
L119: if (typeof fps !== "number") {
[ WARN ] @method requires async: ./src/components/bomradar/bomradar.tsx:126:3
External @method() setPauseTime() must return a Promise. Consider prefixing the method with async,
such as @method() async setPauseTime().
L125: @Method()
L126: setPauseTime(t: number) {
L127: if (typeof t !== "number") {
[13:54.1] build failed, watching for changes... in 14.08 s
[13:54.1] http://localhost:3333/
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.