小编Jos*_*hua的帖子

如何:调试 UIWindows 在初始应用程序激活之前创建

我的控制台今天发布了这个错误, [ApplicationLifecycle] UIWindows were created prior to initial application activation. This may result in incorrect visual appearance.

这导致应用程序 UI 行为不正常。我以前从未见过这种情况,需要了解从哪里开始调试。

macOS: Catalina 10.15
XCode version: Version 11.1 
Run Code Online (Sandbox Code Playgroud)

application-lifecycle ios

9
推荐指数
1
解决办法
2756
查看次数

如何修复:this.setDynamic 不是函数

我的 babel 配置有问题,不知道是什么问题。

我看到的错误:

 ERROR  Failed to compile with 1 errors                                                                                          friendly-errors 21:27:50


 ERROR  in ./.nuxt/client.js                                                                                                     friendly-errors 21:27:50

Module build failed (from ./node_modules/@nuxt/webpack/node_modules/babel-loader/lib/index.js):                                  friendly-errors 21:27:50
TypeError: this.setDynamic is not a function
Run Code Online (Sandbox Code Playgroud)

我的 .babelrc 看起来像这样:

{
  "presets": [
    [
      "vue-app",
      {
        "useBuiltIns": true
      }
    ],
    "flow"
  ],
  "plugins": ["@babel/plugin-proposal-decorators", "@babel/plugin-proposal-class-properties"],
  "env": {
    "test": {
      "plugins": ["babel-jest-assertions", "transform-runtime"]
    }
  }
}
Run Code Online (Sandbox Code Playgroud)

包锁,安装的插件:

"@babel/core": "^7.4.5",
    "@babel/preset-env": "^7.4.5",
    "@nuxtjs/google-analytics": "^2.2.0",
    "acorn": "^6.1.1",
    "axios": "^0.18.1",
    "babel-jest-assertions": "^0.1.0",
    "babel-plugin-transform-decorators-legacy": "^1.3.5",
    "babel-preset-flow": "^6.23.0",
Run Code Online (Sandbox Code Playgroud)

需要更改什么才能使此配置正常工作?已经访问了各种 stackoverflow 答案,但尚未找到有效的解决方案。

评论后更新配置: …

webpack vue.js babeljs babel-loader nuxt.js

6
推荐指数
1
解决办法
4647
查看次数