GithubHelp home page GithubHelp logo

在tsx类型中使用小程序原生第三方组件和插件,报错,类型“JSX.IntrinsicElements”上不存在属性“calendar”。 about taro-sample-weapp HOT 5 OPEN

kiana-god avatar kiana-god commented on July 29, 2024
在tsx类型中使用小程序原生第三方组件和插件,报错,类型“JSX.IntrinsicElements”上不存在属性“calendar”。

from taro-sample-weapp.

Comments (5)

kiana-god avatar kiana-god commented on July 29, 2024

image
请问怎么处理

from taro-sample-weapp.

drizzlesconsin avatar drizzlesconsin commented on July 29, 2024
// global.d.ts
declare namespace JSX {
  interface IntrinsicElements {
    calendar: any;
  }
}

目前似乎只能这样

from taro-sample-weapp.

kiana-god avatar kiana-god commented on July 29, 2024
// global.d.ts
declare namespace JSX {
  interface IntrinsicElements {
    calendar: any;
  }
}

目前似乎只能这样

这个要怎么使用呢。。😢

from taro-sample-weapp.

KanChaiShaoXia avatar KanChaiShaoXia commented on July 29, 2024

也可以在上面加一行 @ts-ignore 跳过检查

image

from taro-sample-weapp.

kiana-god avatar kiana-god commented on July 29, 2024

也可以在上面加一行 @ts-ignore 跳过检查

image

也可以在上面加一行@ ts-ignore跳过检查

图像

非常感谢,这也是一种方式!

from taro-sample-weapp.

Related Issues (20)

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.