22,710 questions
-1
votes
1
answer
69
views
How to compile Typescript library with its dependencies without webpack/rollup?
I'm new in Typescript and building Typescript library, but I got a problem:
I created a library say, @my-lib/my-first-lib.
I created another library say, @my-lib/my-second-lib which depends on @my-...
0
votes
2
answers
113
views
How to build a module for logging in Python?
I want to write a library (a module) in Python for logging. The logger instance should be unique per process and global per process. (Meaning that it should not be passed around as an argument to ...
0
votes
1
answer
81
views
Ansible with_subelements erroring out on FortiGates
I've got an Ansible playbook I'm using to do SNMP user operations on FortiGates using the with_subelements module. I tried using a loop, but that was exhibiting some very bizarre behavior (outlined in ...
0
votes
1
answer
44
views
How to properly reload a module in Python
This question has been asked many times, here are a few for reference:
Reimport a module while interactive
Proper way to reload a python module from the console
How to reload a module's function ...
1
vote
0
answers
119
views
C++ 20 modules. duplicate of vtable
Here is the code:
// A.cppm
export module AMOD;
export class A {
public:
virtual ~A() = default;
virtual foo() = 0;
};
// B.cppm
export module BMOD;
import AMOD;
export class B : public A {
...
0
votes
1
answer
74
views
How to read a file from an external usb drive connected to android, java solution
I have a React Native application where I need to find a specific file, DataXYZ.txt, when an external USB device is connected and be able to share it. Since, to my knowledge, React Native does not ...
0
votes
0
answers
23
views
Embedding react web components: Access to script from origin 'http://localhost:3000' has been blocked by CORS policy
I created a react web component (r2wc/react-to-web-component). The component is hosted on vercel under https://<my-project-name>.vercel.app/assets/js/widget.js.
I try to embed the .js module via ...
8
votes
0
answers
279
views
What is the correct way to export enum values for an unnamed enum in C++ modules?
I stumbled upon the image processing libraries from https://github.com/nothings/stb/ and as I experiment with C++ modules I tried to use stb_image.h "as module".
For this I wrote a small ...
0
votes
1
answer
89
views
`ModuleNotFoundError` when running Python script with a custom module despite correct `sys.path` setup and conda environment
Problem
I'm working on a Python project with the following structure:
apx-cv/
├── utils/
│ └── custom_object_functions.py
│ └── utils.py
├── models/
│ └── sample_configurations.py
└── test/
└...
0
votes
0
answers
42
views
Can't install module although dependancies are all satisfied?
I am trying to download a module. It worked before but 2 weeks ago it gave me an error, and I can't install it again...
I tried using the command:
conda install -c conda-forge montreal-forced-aligner
...
2
votes
1
answer
78
views
Powershell C# Extension How to Set the DefaultDisplayProperty when returning data with Write Object
I have created a PowerShell cmdlet in C#:
using System.Management.Automation;
using thosepeskyexternalclasses
[Cmdlet(VerbsCommon.Get, "GetActivity", SupportsTransactions = false)]
public ...
0
votes
0
answers
32
views
Alternative Title not showing in Module Drupal 10
<?php
use Drupal\node\Entity\Node;
/**
* Implements hook_preprocess_page().
*/
function alternative_title_preprocess_page(&$variables) {
// Check if the current route contains a node.
...
0
votes
1
answer
240
views
Fix IntelliJ IDEA Gradle Sync Failed For Old Module
Sometimes when I'm modifying some projects I get old modules leftovers, like when trying to sync my project I get this error:
It has issues when syncing my gradle project because of an old module ...
0
votes
1
answer
93
views
Prestashop 8.1 create simple module, no redirection to the site
I have a problem in preparing a simple module that displays the word TEST both in the admin panel and on the user's side after accessing his account
Module structure:
[1]: https://i.sstatic.net/...
0
votes
0
answers
97
views
Error while building SPM package with ObjC code
I have objc project https://github.com/facebookincubator/SocketRocket which I forked and adding SPM support. I create Package.swift:
let package = Package(
name: "SocketRocket",
...
0
votes
0
answers
58
views
"Failed to load resource: net::ERR_FILE_NOT_FOUND" Electron
Resource of CalHeatmap not found when testing app in Electron. I check on my vscode that clicked new CalHeatmap(); will jump into the source file, so it should be work, but when try to npm start the ...
1
vote
0
answers
58
views
In node v20, Make a variable/module like Crypto, global scoped?
In nodejs v20, "global" keyword doesn't make a module global scoped. The node.js is recommending to use globalThis still globalThis is also not working.
How to make a variable global scoped ...
0
votes
1
answer
98
views
Module is suddenly not found, and can't install it either with pip
Yesterday I was working on my project. Today, when I opened it, two modules aren't found. Yesterday they were, so that is pretty strange already. When I try to install using pip, it says 'Requirement ...
0
votes
1
answer
136
views
Package existing 3rd Parties in seperate C++20 modules
I'm trying to use modules to speed up our windows builds a little bit.
From my first impressions C++20 Modules are definitely faster than PCH (atleast on windows).
Currently I'm only focussed on ...
0
votes
1
answer
90
views
Angular version 18 - Alternate of SpyNgModuleFactoryLoader for unit testing of lazy loading Module
I am trying to write a unit test case for a lazy-loaded module with a canMatch guard. I have reviewed multiple threads on Stack Overflow, but the solutions provided are either outdated or not workable....
0
votes
1
answer
41
views
Power Shell script to automate need to install modules
Load required assemblies
Add-Type -AssemblyName System.Windows.Forms
Add-Type -AssemblyName System.Drawing
function Show-MessageBox {
param (
[string]$message,
[string]$title
)
[System....
2
votes
1
answer
2k
views
go.mod file getting updated when running go mod tidy
I have the following go.mod file. I'm unable to run the module as the compiler in VSCode asks me to run go mod tidy. When I run go mod tidy my go.mod file gets updated with go version getting bumped ...
0
votes
0
answers
422
views
VSCodium Not Recognizing Python Module in Virtual Environment
I activated the virtual environment of my project via the terminal and then opened the project path in VSCodium. Despite installing the Python library globally, VSCodium still doesn't recognize the ...
0
votes
1
answer
131
views
I am attempting to pass an infobox value into a LUA module that outputting an answer based on the infobox value (FANDOM WIKIA)
I am working on a module that converts the value of a specific value into a new value when mutliplying it by a certain percentage. EX 100 * 1.3754 = 137.54. When I use the module, it spits out my ...
-1
votes
1
answer
25
views
File 'd:/Courses/React/TEST-2/api-frontend/src/api.d.ts' is not a module.ts(2306)
I am trying to implement my api into my webpage so i can use this frontend as interface to access the api.
I have created files namely api.js for the api:
// src/api.js
import axios from 'axios';
...