xioxin / taro-f2

Taro多端F2图表
107 stars 21 forks source link

Super expression must either be null or a function #53

Open lightShowers opened 3 years ago

lightShowers commented 3 years ago

TypeError: Super expression must either be null or a function at _inherits (inherits.js:4) at index.js:18362 at Object../node_modules/taro-f2/dist/weapp/components/f2-canvas/f2-canvas.tsx (f2-canvas.tsx:106) at webpack_require__ (bootstrap:79) at Module../node_modules/taro-f2/dist/weapp/index.ts (index.ts:1) at webpack_require (bootstrap:79) at Object../node_modules/taro-f2/dist/index.js (index.js:8) at __webpack_require (bootstrap:79) at Object../node_modules/@tarojs/mini-runner/node_modules/babel-loader/lib/index.js!./src/pages/data/task/index.tsx (f2.js:17735) at __webpack_require__ (bootstrap:79)

wy2016xiao commented 3 years ago

我也出现了这个问题,请问如何处理该报错?

lightShowers commented 3 years ago

我也出现了这个问题,请问如何处理该报错?

taro-f2 不兼容了吧,你还有别的插件吗 taro 版本 3.0.5

1402848990 commented 3 years ago

我也出现这个问题了,求解决方案

tianya1015 commented 3 years ago

同问,"@tarojs/taro": "3.0.13",报同样的错误。有没有办法解决?

Duanruilong commented 3 years ago

import React from "react"; import Taro from "@tarojs/taro"; import { View } from "@tarojs/components"; import { styled } from "linaria/react";

const Wrapper = styled(View) color: red; ; export default class Home extends Taro.Component { render() { return hello world; } }

类组件已经更换写法

import React from "react"; import { View } from "@tarojs/components"; import { styled } from "linaria/react";

const Wrapper = styled(View) color: red; ; export default class Home extends React.Component { render() { return hello world; } }

zwzy commented 3 years ago

import React from "react"; import Taro from "@tarojs/taro"; import { View } from "@tarojs/components"; import { styled } from "linaria/react";

const Wrapper = styled(View)color: red;; export default class Home extends Taro.Component { render() { return hello world; } }

类组件已经更换写法

import React from "react"; import { View } from "@tarojs/components"; import { styled } from "linaria/react";

const Wrapper = styled(View)color: red;; export default class Home extends React.Component { render() { return hello world; } }

大佬知道如何解决么

ctq123 commented 3 years ago

同问,如何解决

ctq123 commented 3 years ago

赶紧解决一下呀,亲

mrKingAndroid commented 3 years ago

赶紧解决一下呀,亲