Giter Club home page Giter Club logo

bomradar's People

Contributors

lingomat avatar

Watchers

 avatar  avatar

bomradar's Issues

Cant get it to work, but I am new to this so it could be me.

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/

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.