模块解析失败错误意外令牌} - Webpack

时间:2016-01-25 18:12:46

标签: javascript angularjs module webpack

我不知道为什么我会收到此错误

set.seed(1)
v1 <- sample(0:1, 20, replace = TRUE)
v2 <- sample(0:1, 20, replace = TRUE)
matches <- vector()
rad <- 3 

for (i in 1:length(v1)){
  if ((i - rad) < 0){
    matches[i] <- ifelse((v1[i] %in% v2[1:rad]) & v1[i] == 1, TRUE, FALSE)
  } else{
    matches[i] <- ifelse((v1[i] %in% v2[(i-rad):(i+rad)]) & v1[i] == 1, TRUE, FALSE)
  }
}

这是我的entry.js文件

这是loginController(第66行是下面代码中的最后一个结束ERROR in ./login/loginController.js Module parse failed: /Users/leon/Projects/admin/login/loginController.js Line 66: Unexpected token } You may need an appropriate loader to handle this file type. | console.log('login failed!'); | } | } | } | @ ./entry.js 16:22-59

}

1 个答案:

答案 0 :(得分:4)

我认为您的问题是AuthFactory.login(credentials).then(function (user) {,看起来这个方法调用没有关闭)

相关问题