我正在使用laravel elixir和gulp来编译我的sass文件。但是当我在termial中写gulp时,我得到了这个错误。
fs.js:27
const { Math, Object } = primordials;
^
ReferenceError: primordials is not defined
at fs.js:27:26
at req_ (/home/user/Videos/projetct-folder/project/node_modules/natives/index.js:143:24)
当我尝试在我的代码中使用node-gcm时,我得到了这个错误。我已经按照标准方法的要求(‘node-gcm’)包含了它。
var message = new gcm.Message();
^
TypeError: gcm.Message is not a function
at Object.<anonymous> (/home/parashar/Downloads/opentsdb.js:13:15)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (modu
我安装了Node.js v12.13.0,但仍然出现以下错误。我已经检查了很多关于这方面的问题,但所有问题的解决方案都是更新的节点版本。
Uncaught TypeError: crypto__WEBPACK_IMPORTED_MODULE_5__.generateKeyPairSync is not a function
at Login.render (Login.jsx:31)
at finishClassComponent (react-dom.development.js:17098)
at updateClassComponent (react-dom.de
当我试图在我的程序中使用jxcore.tasks.addTask函数时,我得到了这个错误。
undefined:1
function (){}
^
SyntaxError: Unexpected token u
at Object.parse (native)
at gcc (_jx_tasks.js:130:24)
at process.<anonymous> (_jx_tasks.js:425:3)
at process.emit (events.js:106:17)
at process.__makeCall (node.js:420
我正在尝试用Java编写一个函数,该函数在react本机中公开给JavaScript。我已经按照https://reactnative.dev/docs/native-modules-android中提到的那样做了正确的说明,但是仍然得到了相同的错误:
typeError: null is not an object(evaluating '_reactNative.NativeModules.{myModule}.{myExposeFunction}'.
我在android手机上运行这个应用程序。我上传了密码:
- App.js
ToastModule.java -
To
将Joi升级到最新版本@hapi/Joi(17.1.1)后,我的服务器没有启动,启动时出现以下错误。在最近的版本中似乎有一些突破性的变化。不能得到任何线索,任何帮助是感激的。
Error: Schema can only contain plain objects (name)
at new module.exports (/Users/xyz/project/projectxyz/node_modules/@hapi/hoek/lib/error.js:23:19)
at module.exports (/Users/xyz/project/projectxyz/node_m
我正在用vuejs安装一个项目,但是我显示了这个错误,知道如何解决它。
D:\> vue create crud-app
node:os:68
throw new ERR_SYSTEM_ERROR(ctx);
^
SystemError [ERR_SYSTEM_ERROR]: A system error occurred: uv_os_gethostname returned ENOSYS (function not implemented)
at new Defaults (C:\node32\node_modules\@vue\cli\n
我有个六角形的计划。一切似乎都正常。当我从子菜单项导航到Correspontie组件时,ONly。
我总是看到这样的信息:
ERROR TypeError: Cannot read property 'length' of undefined
at Object.updateDirectives (dossier-correspondence-item.component.ts:51)
at Object.debugUpdateDirectives [as updateDirectives] (core.js:11914)
at checkAndUpda
我遵循以下步骤:
在命令行中运行swank-js。
运行emacs。
M黏液连接。
主机: 127.0.0.1;端口: 4005
打开火狐中的http://localhost:8009/swank-js/test.html。
接收:“远程附加:(浏览器) Firefox14.0”在emacs REPL中。
在REPL中运行"document“命令。
此时,我收到错误:
ReferenceError: document is not defined
at repl:1:1
at DefaultRemote.evaluate (/usr/
我尝试在mozilla js中获取MozillaBrowserBot对象。但它并没有给出对象。我使用的代码如下:
function externalApplication(){
var wm = Components.classes["@mozilla.org/appshell/window-mediator;1"].getService(Components.interfaces.nsIWindowMediator);
alert("wm: "+wm);
var contentWindow=wm.getMostR
我的按钮弹出并允许我登录,但是当它将我重定向到下一页时,我会收到一个错误,声明没有从api访问,另一个错误说没有定义名称,我知道名称是定义的,因为我以前用相同的代码做过一次,但是vscode做了一些愚蠢的事情并破坏了它。这是我的密码。
import React, {Component} from 'react';
import FacebookLogin from 'react-facebook-login';
import GoogleLogin from 'react-google-login';
import
我正在尝试做最简单的事情:将用户发送到Stripe的托管结帐页面,其中包含1种产品。
Stripe的例子似乎都没有用,到目前为止我得到的是:
创建-签出-session.php
require_once 'shared.php';
// ?session_id={CHECKOUT_SESSION_ID} means the redirect will have the session ID set as a query param
$checkout_session = \Stripe\Checkout\Session::create([
'success_u
我有个问题。我想从登录的用户那里获取所有信息。这些信息包含在Firebase数据库中。当我使用用户数据登录时,控制台会给我以下错误消息:
subscribe.js:159 TypeError: db.collection is not a function
at Object.next (index.js:9)
我怎样才能纠正错误?
index.js
firebase.auth().onAuthStateChanged(function(user) {
if (user) {
// User is signed in.
var db = firebase
我想设置和不和谐的机器人,但我需要一些帮助设置一个.env文件,并修改我的机器人代码,以读取.env文件。此外,使用Heroku开始托管机器人。
main.bot.js的代码
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve
在更新网格视图后,我在尝试刷新它时遇到问题。DB获取更新,当我手动刷新页面时,我可以在那里看到它们,但当我单击更新链接提交更改时,就看不到它们了。
我尝试调用填充网格的函数,收到一个js错误"Microsoft JScript runtime error: Unable to get value of the property 'firstChild':object is null or undefined“。它遍历该方法,直到它退出后才抛出该错误。
有没有其他方法可以在更新后刷新我的网格?
代码如下:
protected void Page_Load(obje
这个错误意味着什么?
$ pm2 logs
[TAILING] Tailing last 15 lines for [all] processes (change the value with --lines option)
/home/tealou/.pm2/pm2.log last 15 lines:
PM2 | 2017-03-29 07:25:45: App [www] with id [0] and pid [29444], exited with code [1] via signal [SIGINT]
PM2 | 2017-03-29 07:25:45
我有一个javascript和一个HTML文件,它们在一个外部jQuery文件(jquery.myfile.min.js)中使用了几个函数。但是,用jquery.myfile.min.js编写的函数不会被执行。
我使用浏览器控制台,得到以下消息:
TypeError: undefined is not an object (evaluating 'jQuery.myfile.validateData')
我在网站上检查了文件加载成功的资源。这里可能会出什么问题呢?
我要调用的代码是
<script>
function myFunction(){
if (jQ