Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用ApolloProvider 后工程报错 object is not extensible #119

Open
leoswing opened this issue Apr 18, 2019 · 0 comments
Open

使用ApolloProvider 后工程报错 object is not extensible #119

leoswing opened this issue Apr 18, 2019 · 0 comments

Comments

@leoswing
Copy link

由于Taro 工程里面使用了 Nerv作为节点render,所以对于render的时候,报错Cannot add property parentVNode, object is not extensible;

复现步骤:
Taro 工程引入 react-apollo 的 ApolloProvider;

import ....;

....link, cache, resolvers definition

const client = new ApolloClient({ link, cache, resolvers });
class App extends Component {
   render () {
      return (
        <ApolloProvider client={client}>
           <Index />
        </ApolloProvider>
      )
   }
}

Taro.render(<App />, document.getElementById('app'));

报错信息: 页面渲染控制台 console报错:

Cannot add property parentVNode, object is not extensible;

调试看了下相关脚本,是由于Nerv.render时候报的错,对于 Apollo Provider的不支持。
能否帮忙支持下这个? 不然一直用不了这个特性。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant