我有一个失败,当我运行'ng测试‘在我的角度6应用程序:
失败:无法读取属性'textContent‘的null
请看示例应用程序..。
问题似乎与app.component.spec.ts文件有关。请参阅下面的错误消息:
AppComponentTest > -> should render title in a h1 tag
Failed: Cannot read property 'textContent' of null
at <Jasmine>
at UserContext.eval (./src
当我试图运行我的项目时,我得到了_vm._ssrNode is not a function。
same只是运行nuxt,它可能运行node_modules/nuxt/bin/nuxt.js,当我自己运行它时,./node_modules/nuxt/bin/nuxt.js会导致同样的错误。
当我从CLI运行Nuxt (例如位于nuxt的/home/<user>/.nvm/versions/node/v12.16.3/bin/nuxt )时,应用程序运行得很完美。
更多信息:
./node_modules/nuxt/bin/nuxt.js --version
@nuxt/cli v2
每当我在离子上构建android的时候,我都会收到这个错误--prod。它适用于离子服务和离子运行。即使是离子建造也没问题。
Error: Cannot determine the module for class SupplierChequeModalPage in
C:/wamp/www/pos/src/pages/supplier-cheque-modal/supplier-cheque
-modal.ts! Add SupplierChequeModalPage to the NgModule to fix it.
Cannot determine the module for cl
这个问题已经有一个星期了,还没有找到解决办法,但我想出了一些办法来缩小问题的范围。我试图在我的Next.js应用程序中运行纱线构建,但是它失败了,我将在下面发布一个错误。
程序应用程序在yarn dev中编译得很好,所有样式都可以工作。我使用了TW文档中的标准设置。
不良的风格名称会导致建筑错误吗?例如,className="BadStyleName h-10 w-10"
错误:
info - Creating an optimized production build
Failed to compile.
HookWebpackError: C:\Users\proj
我试图通过角CLI创建服务,它引发了以下错误:
$ ng g service services/client
E:\MyApp\MyAngularJS proj\ng5\12Proj\clientpanel\node_modules\@angular\cli\models\config\config.js:89
throw new InvalidConfigError(common_tags_1.stripIndent
InvalidConfigError: Parsing 'E:\MyApp\MyAngularJS proj\ng5\12Proj\clien
我试图运行npm run test:unit,真正的错误似乎是来自npm debug.log的test:unit: Failed to exec test:unit script。然而,脚本没有问题地运行和执行。
我对NPM + Node有点陌生,所以我在努力应对这种行为。当我运行npm run test:unit ( "test:unit": "vue-cli-service test:unit" in Package.json)时,我得到了以下输出:
Test Suites: 1 passed, 1 total
Tests: 1 passed,
当我试图通过运行以下代码在我的角14.7.13应用程序中创建一个新组件时:
/f/JS/apps/myapp/src/app/board (main)
$ npx nx generate @nrwl/angular:component board --project=myapp --style=scss --no-interactive --verbose
我得到以下错误:
Error: The path provided for the component (src/app/board) does not exist under the project root (). Please mak
我试图建立一个新的Rails项目与webpacker和角。基本设置正在工作,但我不能包括自定义SCSS文件。我遵循了博客文章中的步骤,但我无法启动并运行它。我最后犯了错误
ERROR in ./node_modules/css-loader??ref--2-2!./node_modules/postcss-loader/lib??ref--2-3!./node_modules/sass-loader/lib/loader.js??ref--2-4!./node_modules/to-string-loader/src/to-string.js!./node_modules/css-loader
我正试图从ng test --code-coverage那里得到一份覆盖报告。没有覆盖范围,测试运行时就没有问题,但是有了它,我得到了以下错误:
ERROR [karma]: TypeError: Cannot read property 'replace' of undefined
at fixPathSeparators (<path>\node_modules\karma-coverage-istanbul-reporter\src\util.js:20:21)
at Object.fixWebpackSourcePaths (<path>
jspm install
我面对的错误
TypeError: must start with number, buffer, array or string
at fromObject (buffer.js:158:9)
at new Buffer (buffer.js:62:10)
at decodeCredentials (E:\Exinda_Cloud\qx-cloud-fe\node_modules\jspm\node_modules\jspm-github\github.js:55:14)
at Object.G
节点无法为SSL通信创建安全上下文。
具体地说,我正在尝试让远程通知在iOS上工作。我使用了一个名为node-apn的模块,它抛出了这个错误:
Error: error:0906A068:PEM routines:PEM_do_header:bad password read
at Error (native)
at Object.createSecureContext (_tls_common.js:108:19)
at Object.exports.connect (_tls_wrap.js:852:21)
at apnSocket (/home/Slurp/node_modules/ap
我的反应很新,现在我正在尝试使用故事簿。当我使用npm run storybook时,会遇到下面的错误。我已经试过想办法了,但我还是不确定。
无法读取未定义(读取“类型”)TypeError的属性:无法读取未定义的属性(读取“类型”)
at isMdx (http://localhost:6006/vendors-node_modules_pmmmwh_react-refresh-webpack-plugin_lib_runtime_RefreshUtils_js-node_mod-3a4695.iframe.bundle.js:3504:30)
at mdxToJsx (http://loc
我安装了一个新的windows,并且第一次尝试运行ng-packagr。
我得到了一个错误:
Error: Cannot find module '@angular/compiler-cli/src/perform_compile'
at Function.Module._resolveFilename (module.js:547:15)
at Function.Module._load (module.js:474:25)
at Module.require (module.js:596:17)
at require (internal/mo