花大咩
花大咩
@Xiaoling9 你这个例子是vue的jsx?
@liupei1995 你这个错误是你的umi项目对于vue-loader的添加和配置有问题,如果你使用的是veaury的webpack plugin,你需要将plugin插入到所有插件的第一位
@wangYalun ```typescript interface MagicOptions { [key: string]: any useInjectPropsFromWrapper?: injectionFunction beforeVueAppMount?: (app: object) => any } ``` ```ts const VueComponentInReact = applyVueInReact(VueComponent, { // beforeVueAppMount can only be used in...
@lh12565 修改jsx的部分为如下 ```jsx import * as React from 'react' import {LollipopPlot} from 'react-mutation-mapper' import { observer } from 'mobx-react'; // @observer class Example extends React.Component { render () { return...
@cauancesar What version of Vearuy did you import? And is it possible to provide a test project that can reproduce this problem?
@wjw-gavin Give me some example
@coder-layne As shown in the error message, upgrade your node version to at least 18 or above.
@gaomigithub ```cmd yarn install --ignore-engines ```
@prajapati-mukesh ```js import { applyPureReactInVue } from 'veaury' ```
@bogart001 这是正确的回表现,如果你想在其他目录也能编译react jsx,需要修改插件的配置,具体看文档