Skip to content

Commit

Permalink
fix(RN): yarn dev:rn 时 报错 TypeError: TypeError: undefined is not an o…
Browse files Browse the repository at this point in the history
…bject (evaluating 'this.$router.params') close #1779
  • Loading branch information
Pines-Cheng committed Jan 7, 2019
1 parent ced2dcf commit f10b764
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/taro-cli/src/rn/transformJS.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ const ClassDeclarationOrExpression = {
node.superClass.type === 'MemberExpression' &&
node.superClass.object.name === taroImportDefaultName
) {
node.superClass.object.name = reactImportDefaultName
node.superClass.object.name = taroImportDefaultName
if (node.id === null) {
const renameComponentClassName = '_TaroComponentClass'
componentClassName = renameComponentClassName
Expand Down

0 comments on commit f10b764

Please sign in to comment.