Category "module"

Why can't export variable members in a PowerShell module using VariablesToExport?

From How to Write a PowerShell Module Manifest I learned that I can export all the variables in the module using VariablesToExport = '*'. However, after using i

Error: module not found in React, cannot resolve 'url' in ...axios/lib/adapters

I'm getting this error and am not sure firstly why it appears and secondly how to resolve. the error message: Compiled with problems:X ERROR in ./node_modu

Python environment or installation doesn't have the spyder-kernels module or the right version of it installed

I've tried several of the other suggestions/answers on this exact topic. I used Spyder-kernel 2.0.5 with Spyder 5.0.5 with Python 3.9.6. The env activation proc

YouCompleteMe unavailable: module 'collections' has no attribute 'Mapping'

Hi I have been trying to setup YouCompleteMe in vim but it don't work. I am using vim-plug. I tried around 3 different YouCompleteMe repositories but i always g

Error: Cannot find module. Please verify that the package.json has a valid "main" entry

As I'm creating MERN stack login-system with bcyrpt implemented, I have done 'npm install' and 'npm install bcrpyt --save' in my root folder for server to work.

Access module attribute from within the function

I have a function and the fully qualified name is -> pyserv.asynch.service.modules.get_result() It is possible that pyserv or other module, say services or m

Difference between NodeJs preload option (-r) and explicit require in in REPL

I'm using esm which is a very useful package to support ES import keywords. According to the doc, in REPL, it can use preload command-line option to initialize

Continuous error in module: TypeError: Artist() takes no arguments

Working through an assignment, and have tried multiple changes to both the Class and the Module but I still am getting an error, "TypeError: Artist() takes no a

Cannot access object from GraphQL query (JavaScript)

Subgraph query returns results to console, but my javascript module can't access any values from it, returning an error: TypeError: Cannot read properties of un

"type": "module" import issue

Using js librairies, I struggle with the fact that require and import are not suitable together. When I write "type": "module" in the package.json, then import

Can you import a NestJS module on condition

I'am creating a microservice in NestJS. Now I want to use RabbitMQ to send messages to another service. My question is: is it possible to import the RabbitmqMod

Can you import a NestJS module on condition

I'am creating a microservice in NestJS. Now I want to use RabbitMQ to send messages to another service. My question is: is it possible to import the RabbitmqMod

Nginx fancy-index header and footer never load

I'm creating a Nginx file server, and I'm trying to enable the fancy-index module to get have custom header and footer, but I can't get it working, the header/f

How to import flutter module to a flutter project?

I have a flutter module project and I want to import it into another existing flutter project, how can I do this? I think this may not be possible since there w

Standalone exe file Python without Python installed

I am trying to create executable file from Python script with os, tkiner, pandas and xlsxwriter packages. I used pyinstaller, but always get error that pandas i

Can't import file from another directory which imports a file from the same directory (int Python)

So my project structure is the following: project/ src/ __init__.py utils.py model.py usage.py I now want to import functions f

is there a way to automate VMware snapshot deletion by setting a schedule through Ansible or rest API

I am trying to figure out if there is a way to automate VMware snapshot deletion through Ansible. I have found vmware_guest_powerstate.py"to be closest to it an

running exec inside a function when calling a module

I'm trying to assign a module's attribute to a variable using exec inside a function. color is a str like: 'jet', 'seismic', 'nipy_spectral', or something else.

Find syntax error IN SQL query using python

I want to parse sql file using python code and find any syntatical error present in the file. Is there any way to do it?

Nuxt/ESLint - Parsing error: Must use import to load ES Module

I am using Nuxt 2.15.7 in VS Code, using Node version 14.17.1 and the eslint extension. The problem I started seeing a red squiggly line under the 1st character