Webpack-无法解构“快照”的属性“ startTime”,因为它为null

时间:2020-05-04 13:43:14

标签: angular webpack angular-cli webpack-dev-server angular9

我有一个有角度的应用程序,其中我不使用任何集成的构建器来构建或服务该应用程序。相反,因为我使用的是Webpack 5的演示版,所以我不得不为Webpack使用自定义配置。

所以当我运行serve命令时,我得到了一个错误:

#create function
mean_score <- function(x) {
  for (i in 1:nrow(test)){
    if (sum(test[i, x] != "NA", na.rm = TRUE) >2){
      test$mean_score[i] <- rowMeans(test[i, x], na.rm = TRUE)
    } else 
      test$mean_score[i] <- print("N")
  }
}

#compute function
mean_score(1:3)

服务命令

class AdmissionForm(forms.Form):
date = forms.DateTimeField(widget=forms.DateTimeInput(
attrs={
'class': 'form-control'
}
))
def save(self):
    new_admission = Admission.objects.create(
    date = self.cleaned_data['date'],)

这里是依赖项:

TypeError: Cannot destructure property 'startTime' of 'snapshot' as it is null.
    at FileSystemInfo._checkSnapshotValidNoCache (/home/alecoder/Projects/JS/ap/node_modules/webpack/lib/FileSystemInfo.js:1159:4)
    at FileSystemInfo.checkSnapshotValid (/home/alecoder/Projects/JS/ap/node_modules/webpack/lib/FileSystemInfo.js:1153:8)
    at processCacheResult (/home/alecoder/Projects/JS/ap/node_modules/webpack/lib/cache/ResolverCachePlugin.js:253:26)
    at /home/alecoder/Projects/JS/ap/node_modules/webpack/lib/Cache.js:93:5
    at Hook.eval [as callAsync] (eval at create (/home/alecoder/Projects/JS/ap/node_modules/webpack/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:14:1)
    at Cache.get (/home/alecoder/Projects/JS/ap/node_modules/webpack/lib/Cache.js:75:18)
    at /home/alecoder/Projects/JS/ap/node_modules/webpack/lib/cache/ResolverCachePlugin.js:300:15
    at Hook.eval [as callAsync] (eval at create (/home/alecoder/Projects/JS/ap/node_modules/webpack/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:20:1)
    at Resolver.doResolve (/home/alecoder/Projects/JS/ap/node_modules/webpack/node_modules/enhanced-resolve/lib/Resolver.js:245:16)
    at Resolver.resolve (/home/alecoder/Projects/JS/ap/node_modules/webpack/node_modules/enhanced-resolve/lib/Resolver.js:158:16)

这是一个webpack配置:

"webpack:serve": "node --max-old-space-size=8192 node_modules/webpack-dev-server/bin/webpack-dev-server.js --config webpack.dev.config.js --host \"dev.someurl.com\"  --port 443"

我为什么会收到此错误的任何想法?

0 个答案:

没有答案