{"action":"opened","issue":{"url":"https://api.github.com/repos/NervJS/nerv/issues/100","repository_url":"https://api.github.com/repos/NervJS/nerv","labels_url":"https://api.github.com/repos/NervJS/nerv/issues/100/labels{/name}","comments_url":"https://api.github.com/repos/NervJS/nerv/issues/100/comments","events_url":"https://api.github.com/repos/NervJS/nerv/issues/100/events","html_url":"https://github.com/NervJS/nerv/issues/100","id":382976732,"node_id":"MDU6SXNzdWUzODI5NzY3MzI=","number":100,"title":"引进第三方ReactPlayer报错","user":{"login":"wuqiaoxiu","id":40447656,"node_id":"MDQ6VXNlcjQwNDQ3NjU2","avatar_url":"https://avatars1.githubusercontent.com/u/40447656?v=4","gravatar_id":"","url":"https://api.github.com/users/wuqiaoxiu","html_url":"https://github.com/wuqiaoxiu","followers_url":"https://api.github.com/users/wuqiaoxiu/followers","following_url":"https://api.github.com/users/wuqiaoxiu/following{/other_user}","gists_url":"https://api.github.com/users/wuqiaoxiu/gists{/gist_id}","starred_url":"https://api.github.com/users/wuqiaoxiu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wuqiaoxiu/subscriptions","organizations_url":"https://api.github.com/users/wuqiaoxiu/orgs","repos_url":"https://api.github.com/users/wuqiaoxiu/repos","events_url":"https://api.github.com/users/wuqiaoxiu/events{/privacy}","received_events_url":"https://api.github.com/users/wuqiaoxiu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-11-21T06:37:15Z","updated_at":"2018-11-21T06:37:15Z","closed_at":null,"author_association":"NONE","body":"\r\n**问题描述**\r\n引进ReactPlayer，编译成h5，报 Uncaught TypeError: Cannot add property parentVNode, object is not extensible\r\n\r\n[或者可以直接贴源代码，能贴文字就不要截图]\r\n\r\nconfig/index.js：\r\nmodule.exports = function(merge) {\r\n  if (process.env.TARO_BUILD_TYPE === 'ui') {\r\n    Object.assign(config.h5, {\r\n      enableSourceMap: false,\r\n      enableExtract: false,\r\n      enableDll: false,\r\n    });\r\n    config.h5.webpackChain = chain => {\r\n      chain.plugins.delete('htmlWebpackPlugin');\r\n      chain.plugins.delete('addAssetHtmlWebpackPlugin');\r\n      chain.merge({\r\n        output: {\r\n          path: path.join(process.cwd(), 'dist', 'h5'),\r\n          filename: 'index.js',\r\n          libraryTarget: 'umd',\r\n          library: 'react-player',\r\n        },\r\n        externals: {\r\n          nervjs: 'commonjs2 nervjs',\r\n          classnames: 'commonjs2 classnames',\r\n          '@tarojs/components': 'commonjs2 @tarojs/components',\r\n          '@tarojs/taro-h5': 'commonjs2 @tarojs/taro-h5',\r\n          weui: 'commonjs2 weui',\r\n        },\r\n      });\r\n    };\r\n  }\r\n  if (process.env.NODE_ENV === 'development') {\r\n    return merge({}, config, require('./dev'));\r\n  }\r\n  return merge({}, config, require('./prod'));\r\n};\r\n\r\n\r\n**系统信息**\r\n\r\n - Taro 版本 [e.g. v.1.1.4]\r\n- 报错平台 [h5]\r\n\r\n**补充信息**\r\n自定义音频UI，audio不支持initialTime，引进ReactPlayer"}}
{"actor":{"display_login":"wuqiaoxiu"}}