Yvmeng Wang
Yvmeng Wang
> With a Service interface for each service you can create mocks to make testing easier wherever they are used(eg. handlers). > You also get the benefit of being able...
开启ssr后会显示less文件无法解析
Hi @pantharshit00, ```graphql type Company @db(name: "companies") { id: ID! @id name: String! admin: User! @relation(name: "CompanyToAdmin" link: INLINE) members: [User!]! @relation(name: "CompanyMembers") createdAt: DateTime! @createdAt updatedAt: DateTime! @updatedAt }...
Hope this could be resolved soon.
Same problem here
有什么解决方案吗,编译过后小程序发现不了taro-f2包。可能是命名规范不符合。`Error: module "npm/taro-f2/dist/weapp/index" is not defined`
@xioxin 嗯升级后发现包了。实例中`F2Canvas.fixF2(F2);`这一行在编译微信小程序中会导致eventListener的错误,去掉就好了。
@xioxin `F2Canvas.fixF2(F2);`是为了支持图标的交互吗?加上之后报错`F2Canvas is not defined; [Component] Event Listener Error @ npm/taro-f2/dist/weapp/components/f2-canvas/f2-canvas#(anonymous)` 但是去掉之后图标是静态的,不可以交互。
@xioxin 错误跟这个issue的问题一样。用taro init新建任务,直接用npm安装taro-f2,然后复制示例代码,在F2Canvas.fix(F2)那一行会跳错。解决方法是把fixF2单独拿出来调用,不作为F2Canvas的附属函数。建议写成这样 import { F2Canvas, fixF2 } from 'taro-f2'; 我的解决方案: ```js import Taro, { Component } from '@tarojs/taro' import { View } from '@tarojs/components' import PropTypes from 'prop-types'; import...