Coder Social home page Coder Social logo

webpack-egret's Introduction

xsstomy

2d动画基础 3d动画基础 设计模式 egret-typescript 学习过程中的练习代码

webpack-egret's People

Contributors

xsstomy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

webpack-egret's Issues

egret.Event.ADDED_TO_STAGE 方法不执行

我按照up主的方式搭建了一个脚手架,项目正常,但是初始化的时候 egret.Event.ADDED_TO_STAGE这个方法不生效。是不是需要配置别的文件啊

egret的api 报大堆错 但是正常编译了 怎么修正那些报错

ERROR in [default] F:/6_practiceSpace/webpack-egret/node_modules/[email protected] .10@typescript/lib/lib.d.ts:14715:10
Duplicate identifier 'TouchEvent'.

ERROR in [default] F:/6_practiceSpace/webpack-egret/node_modules/[email protected] .10@typescript/lib/lib.d.ts:14725:12
Duplicate identifier 'TouchEvent'.

ERROR in [default] F:/6_practiceSpace/webpack-egret/src/LoadingUI.ts:41:22
Argument of type 'TextField' is not assignable to parameter of type 'DisplayObje ct'.
Types of property 'addEventListener' are incompatible.
Type '(type: "link", listener: TextField, Z: any, e: TextEvent) => any' i s not assignable to type '(type: "touchMove" | "touchBegin" | "touchEnd" | "t ouchCancel" | "touchTap" | "touchReleaseOut...'.
Type '(type: "link", listener: TextField, Z: any, e: TextEvent) => any' provides no match for the signature '(type: "touchMove" | "touchBegin" | "to uchEnd" | "touchCancel" | "touchTap" | "touchReleaseOutside" | "touchRollOut" | "touchRollOver", listener: DisplayObject, Z: any, e: TouchEvent): any'

ERROR in [default] F:/6_practiceSpace/webpack-egret/src/main.ts:145:8
Supplied parameters do not match any signature of call target.

ERROR in [default] F:/6_practiceSpace/webpack-egret/src/main.ts:145:38
Property 'TouchEvent' does not exist on type 'typeof egret'.

ERROR in [default] F:/6_practiceSpace/webpack-egret/src/main.ts:149:35
Module 'egret' has no exported member 'TouchEvent'.

ERROR in [default] F:/6_practiceSpace/webpack-egret/src/main.ts:159:19
Cannot find name 'Promise'.

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.