642 questions
0
votes
1
answer
185
views
Unable to get dbus policy to behave as expected
Here's the policy
<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
"http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
<...
0
votes
0
answers
74
views
Rolling back an angular 13 to 14 upgrade and now npm update fails - peer dependencies
I was performing an upgrade from Angular 13 to Angular 14 and ran into problems. I've reverted back to Angular 13, but now "npm update" reports peer dependency problems within the angular ...
1
vote
1
answer
58
views
Injected instance not received/not the same when manually resolving an InstancePerLifetimeScope type
I have the following registration code:
private static IContainer BuildContainer()
{
var builder = new ContainerBuilder();
// current assembly
builder.RegisterApiControllers(Assembly....
-1
votes
1
answer
47
views
JS Promise intended to resolve or reject randomly, displays 'undefined' in then/catch for the random value passed as argument in resolve/reject [duplicate]
Qn. Create a JavaScript Promise that, after a delay of 2 seconds, either resolves with the message "Hello World" or rejects with the error message "Error occurred". The outcome (...
0
votes
1
answer
909
views
React icons are not resolved
Failed to compile.
Module not found: Error: Can't resolve 'react-icons/ai' in 'C:\Users\janan\OneDrive\Desktop\dukaan\nishyan\src\components'
ERROR in ./src/components/Navbar.jsx 5:0-57
Module not ...
0
votes
1
answer
117
views
Cannot resolve native module with ElectronJS
I've started an ElectronJS/React/Typescript project including the pcap module. Unfortunately, this module requires a native dependency (pcap_binding.node).
I've already overridden the webpack ...
0
votes
2
answers
528
views
How to increment a value in async function
I had tried to increment the variable loopVal inside the promise but I am unable to increment it. How can I do that?
const hi = function(delay) {
let loopVal = 1;
return new Promise((resolve, ...
1
vote
1
answer
521
views
Module not found, Can't Resolve despite adding a polyfill
I am trying to create a form that sends an email via using a send grid module however it does not seem to be compatible with my web browser because I get this error :
"Failed to compile.
Module ...
4
votes
1
answer
3k
views
Nginx Proxy Manager fails to resolve localhost ip
Issue
My home server was working perfectly until yesterday.
I have an Nginx Proxy Manager to manage SSL (Let's Encrypt) with a duckdns domain that forward the requests to my home assistant that is ...
0
votes
1
answer
55
views
Return after resolve is undefined - React - JS Api
I'm new to React as well as js and I kinda struggle a bit to understand how Promise and resolve work.
I'm trying to do an api to log onto an app with an internal database in SQL. The queries are fine ...
0
votes
1
answer
1k
views
If-else under switch case in shell scripting
#!/bin/sh
echo Enter choice :
echo a : To create a file, name given by user.
echo b : To copy file to another location.
echo c : To determine minimum age to vote.
read choice
case $choice in
a) ...
0
votes
1
answer
1k
views
QEMU DNS resolver not working (properly configured within the VM)
From within the VM-image it is not possible to resolve addresses.
ping returns ping: google.com: Name or service not known and resolvectl query google.com server or network returns error refused.
The ...
1
vote
0
answers
161
views
How to divide gulp tasks into multiple .ts files?
I've tried to setup Gulpfile configuration only with Typescript. Created in project's root folder named gulpfile.ts with index.ts:
import { task } from 'gulp';
import { clearBuild } from './tasks/...
0
votes
1
answer
306
views
While in React I can't resolve with webpack custom module that was forked
I"m trying to use a custom library but I can't see to be able to use when the webpack runs.
I already added it to the fallback assign and a new resolve extensions, but couldn't make it work:
...
0
votes
1
answer
1k
views
Can not extract resource from com.android.aaptcompiler.ParsedResource@74e9fb2d
Can not extract resource from com.android.aaptcompiler.ParsedResource@74e9fb2d.
Image screenshot of my android loginpage project
enter image description here
1
vote
0
answers
208
views
Webpack not resolving modules on npm run build with github workflow but works from local machine npm run build?
below is my production config for a container microfrontend. When I push the changes to github and github actions run npm install and npm run build, I get the following error below. "ERROR in ./...
1
vote
1
answer
1k
views
How to not resolve url() with Dart Sass in Webpack encore?
I just switched from node-sass to sass (Dart Sass) to compile my scss files to css.
I use Symfony's Webpack Encore, and I have enableSassLoader() in my webpack.config.js with no specific config.
With ...
0
votes
1
answer
2k
views
Docker container cannot resolve the subdomain defined in local machine
I have defined a subdomain on my local server and I want to request to subdomain from docker container but the container can not resolve the subdomain. local server uses nginx and is not a docker ...
1
vote
3
answers
9k
views
Out of date files must be resolved or reverted. But I have no unresolved files
So I resolved all files. No shown/known conflicts reported but I still can't submit.
Also looks like its trying to do a 223 revision but I see no 222 revision in history only 221.
What do I need to do ...
1
vote
1
answer
70
views
Javascript promise. Why does resolve return different values when it's called in different places?
const image = document.querySelector('.images');
const createImage = (imgPath, seconds) => {
return new Promise(function (resolve, reject) {
if (imgPath) {
const img = document....
1
vote
1
answer
1k
views
Resolve path to JS File in /node_modules directory in Webpack config
I'm working with an application that uses a custom builder to inject scripts into the head of the DOM. In this particular case, I need to reference a JS file that exists in an installed library from ...
0
votes
2
answers
611
views
What would be a proper way of returning this promise?
I'm new to coding and Promises are somewhat of an abstract concept for me. I know that in order to return a Promise you must use .then and .catch , but I'm unsure how exactly they should be used in ...
1
vote
1
answer
650
views
Android NsdManager resolve return errorCode 0
I want to resolve an IPaddress of a custom IOT device(esp8266) with an Android device.
After some research I think there are two great options to do this. First option is the android NsdManager. The ...
0
votes
0
answers
28
views
Where is resolve function in JavaScript Promise defined? [duplicate]
I am new to programming and JavaScript and I don’t understand those “ resolve “and “ reject”
arguments of the code below.
const myPromise = new Promise((resolve, reject) => {
setTimeout(() => {...
0
votes
1
answer
235
views
new Promise with set state receives an arrow function
I was going through a react code base where I see the Promise function calling setstate with 2 arguments, I cannot exactly decipher how exactly this is working, everywhere I have seen a setState being ...