recently I was working with laravel 5.4 and trying to optimize some images by using laravel-elixir-images.
after I installed the package and execute, the error shows:
/../node_modules/underscore-deep-extend/index.js:102
Object.keys(source).forEach(procMain);
^
TypeError: Cannot convert undefined or null to object
at extendObject (/../node_modules/underscore-deep-extend/index.js:102:16)
at Function._.each._.forEach (/../node_modules/underscore/underscore.js:153:9)
at Function.underscoreDeepExtend [as deepExtend] (/../node_modules/underscore-deep-extend/in
dex.js:105:5)
at Function.<anonymous> (/../node_modules/laravel-elixir-images/index.js:31:23)
at Function.<anonymous> (/../node_modules/laravel-elixir/dist/bootstrap/EnableExtension.js:1
6:18)
at mix (/../gulpfile.js:20:9)
at global.Elixir (/../node_modules/laravel-elixir/dist/index.js:21:5)
at Object.<anonymous> (/../gulpfile.js:17:1)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
Anyone has faced the similair problem like me? Any suggestions please?
Related
I'm looking to create my own external adapter. I pulled the external adapter repo and set it up with yarn per the README. However, when I try running cd packages/sources/coingecko && yarn start within any of the adapter directories, I get the following error:
/Users/jvilla/Documents/GitHub/external-adapters-js/packages/core/bootstrap/dist/lib/cache/index.js:73
if (!context?.cache?.instance)
^
SyntaxError: Unexpected token '.'
at wrapSafe (internal/modules/cjs/loader.js:1053:16)
at Module._compile (internal/modules/cjs/loader.js:1101:27)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1157:10)
at Module.load (internal/modules/cjs/loader.js:985:32)
at Function.external_module_.Module._load (/Users/jvilla/Documents/GitHub/external-adapters-js/.pnp.cjs:42492:14)
at Module.require (internal/modules/cjs/loader.js:1025:19)
at require (internal/modules/cjs/helpers.js:72:18)
at Object.<anonymous> (/Users/jvilla/Documents/GitHub/external-adapters-js/packages/core/bootstrap/dist/index.js:6:17)
at Module._compile (internal/modules/cjs/loader.js:1137:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1157:10)
The README mentions that some require environmental variables, but I don't see anything mentioned in coingecko and I'm not having any luck with the other adapters either.
Thanks to help in the Discord, I was able to resolve my issue. I was using an old version of node and needed to upgrade! The separate, but related, Chainlink Node Operator repo README has Node v12 hardcoded in its setup process, which won't work when running the External Adapter repo.
internal/modules/cjs/loader.js:750
return process.dlopen(module, path.toNamespacedPath(filename));
^
Error: Your organization used Device Guard to block this app. Contact your support person for
more info.
\\?\C:\Users\C5281145\AppData\Roaming\sass-binary\win32-x64-67\binding.node
at Object.Module._extensions..node (internal/modules/cjs/loader.js:750:18)
at Module.load (internal/modules/cjs/loader.js:620:32)
at tryModuleLoad (internal/modules/cjs/loader.js:560:12)
at Function.Module._load (internal/modules/cjs/loader.js:552:3)
at Module.require (internal/modules/cjs/loader.js:657:17)
at require (internal/modules/cjs/helpers.js:22:18)
at module.exports (C:\SRM\SRM_Workspace\sr\infonet\src\main\resources\node\node_modules\node-
sass\lib\binding.js:19:10)
at Object.<anonymous>
(C:\SRM\SRM_Workspace\sr\infonet\src\main\resources\node\node_modules\node-
sass\lib\index.js:14:35)
at Module._compile (internal/modules/cjs/loader.js:721:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:732:10)
I have tried uninstalling node_modules and then running yarn command
Tried everything on google..
Nothing worked for me
I've been stuck with this same problem this one whole day. After hours of digging, finally I solved it by updating my PC's Microsoft Visual C++ Redistributable file. You may find the download link here: https://support.microsoft.com/en-us/topic/the-latest-supported-visual-c-downloads-2647da03-1eea-4433-9aff-95f26a218cc0
Hope your problem will be solved as well!
Thanks a lot to Solant#Github!
I had a similar issue while trying to execute this single nodejs script from Windows 10: const cv = require('opencv4nodejs');
The solution: to start the command line as an administrator, before issuing the command: node <yourScript>
I'm trying to update my project from Angular 4 to Angular 6.
I followed the update steps found on the Angular website and all goes quite smoothly.
However, when trying to use the rxjs-5-to-6-migrate script, it crashes.
I've tried various variations of paths, but noothing seems to work.
I've no idea what's going on...
PS D:\workspace\project> rxjs-5-to-6-migrate -p src/tsconfig.app.json
Running the automatic migrations. Please, be patient and wait until the execution completes.
child_process.js:615
throw err;
^
Error: Command failed: "d:\Applications\node-v9.11.1-win-x64\node_modules\rxjs-tslint\node_modules\.bin\tslint" -c "d:\Applications\node-v9.11.1-win-x64\node_modules\rxjs-tslint\rxjs-5-to-6-migrate.json" -p "src/tsconfig.app.json" --fix
at checkExecSyncError (child_process.js:575:11)
at Object.execSync (child_process.js:612:13)
at migrate (d:\Applications\node-v9.11.1-win-x64\node_modules\rxjs-tslint\rxjs-5-to-6-migrate.js:18:34)
at Object.<anonymous> (d:\Applications\node-v9.11.1-win-x64\node_modules\rxjs-tslint\rxjs-5-to-6-migrate.js:25:14)
at Module._compile (internal/modules/cjs/loader.js:654:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:665:10)
at Module.load (internal/modules/cjs/loader.js:566:32)
at tryModuleLoad (internal/modules/cjs/loader.js:506:12)
at Function.Module._load (internal/modules/cjs/loader.js:498:3)
at Module.require (internal/modules/cjs/loader.js:598:17)
Apparently it was a outdated dependency (probably tslint) what caused this. After updating all dependencies in the package.json, it worked.
I created an asp.net core 2.0 project via
dotnet new reactredux -n sample
then I imported a new module named "react-bootstrap" via npm install
npm install --save #types/react-bootstrap
everything is good so far, but if I try to run this project on my local.
I got this error
An unhandled exception occurred while processing the request.
NodeInvocationException: Prerendering failed because of error: Error: Cannot find module "react-bootstrap"
at Object.<anonymous> (e:\git\Sample\ClientApp\dist\main-server.js:883:7)
at __webpack_require__ (e:\git\Sample\ClientApp\dist\main-server.js:20:30)
at Object.<anonymous> (e:\git\Sample\ClientApp\dist\main-server.js:327:84)
at __webpack_require__ (e:\git\Sample\ClientApp\dist\main-server.js:20:30)
at Object.<anonymous> (e:\git\DotNetCoreFans\ClientApp\dist\main-server.js:384:66)
at __webpack_require__ (e:\git\Sample\ClientApp\dist\main-server.js:20:30)
at e:\git\Sample\ClientApp\dist\main-server.js:66:18
at Object.<anonymous> (e:\git\Sample\ClientApp\dist\main-server.js:69:10)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
Current directory is: e:\git\Sample
Does anyone how to fix it?
Trying to get AjaxIM working on my site with Node.js. I get an error however when I try to initiate server.js
Does anyone know what I am doing wrong and how to fix it??
The following output is produced when running this file:
-bash-3.2# /usr/src/node-v0.4.6/node /home/colleg60/public_html/development/ajaxim/server/server.js
node.js:134
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: Cannot find module 'tcp'
at Function._resolveFilename (module.js:320:11)
at Function._load (module.js:266:25)
at require (module.js:348:19)
at Object.<anonymous> (/home/colleg60/public_html/development/ajaxim/server/server.js:32:11)
at Module._compile (module.js:404:26)
at Object..js (module.js:410:10)
at Module.load (module.js:336:31)
at Function._load (module.js:297:12)
at Array.<anonymous> (module.js:423:10)
at EventEmitter._tickCallback (node.js:126:26)
Try changing 'tcp' to 'net'
might work.
also in any case you were using the old version of AjaxIM > http://groups.google.com/group/ajaxim/browse_thread/thread/151beb1881f36209 ?