Questions tagged [node-modules]
Node.js has a simple module loading system that reduces complexity of applications and promotes code reusability.
node-modules
6,708
questions
0
votes
0
answers
6
views
SyntaxError: The requested module '/node_modules/prop-types/index.js?v=61a765a5' does not provide an export named 'default' (at index.jsx:3:8)
I'm creating a Node module that uses PropTypes, but, when I install and use the module, in the browser console it says this: SyntaxError: The requested module '/node_modules/prop-types/index.js?v=...
0
votes
0
answers
9
views
Having trouble starting an expo project from terminal
running npx create expo-app brings this error
npm ERR! could not determine executable to run
npm ERR! A complete log of this run can be found in: /Users/baguma/.npm/_logs/2024-07-19T22_13_39_732Z-...
0
votes
0
answers
24
views
Upgraded to node:22-alpine from 16-alpine and `.bin` stopped appearing in `node_modules`
This is in a gitlab runner. Wiped cache. It works fine locally. Any ideas for debugging this?
0
votes
0
answers
14
views
Node.js error with 'safe-buffer' module - Need help resolving
I encountered the following error when adding authContext in my text.js file:
express.js?v=620cbc2f:18197 Uncaught TypeError: Cannot read properties of undefined (reading 'from') at node_modules/...
0
votes
3
answers
40
views
Issue Running Angular Application Locally - Error on ng serve
I am new to Angular and I am facing an issue when trying to run a system locally built with Angular and .NET. Below is my package.json file, and I have also attached screenshots of the error and the ...
-3
votes
0
answers
27
views
Trying to update my ws dependency in node modules but having some conflicts. How to update my node dependency? [closed]
I'm trying to update my ws dependency in node modules but having some conflicts mentioned below:
@next/[email protected] requires ws@^7.3.1 via [email protected]
@ness/nodejs-logger-...
0
votes
0
answers
10
views
intl-tel-input hide search field
I tried
countrySearch: false but the search bar is still there. I recently updated from v17 to v23.0.11 and the Search bar is not expected.
Anyone can help me? Thanks!
I tried the following options to ...
0
votes
0
answers
16
views
"const defaultCommand = “dev”; " not found in "node_modules/.bin/next" In Plesk
I deployed my Next.js project on Plesk following the steps in this link.
https://medium.com/@keithchasen/how-to-set-up-your-next-js-app-on-plesk-server-7d8d247a2db2
There's a step where I need to edit
...
-1
votes
0
answers
11
views
Why is there an error when compiling scss to css with npm
Hope you experts can help me, I want to use scripts to convert scss into css but I get an error, it doesn't automatically convert nor sync with the browser and I can't access my html files (it says ...
0
votes
0
answers
41
views
Appropriate loader to handle this file type .mjs | webpack
I recently added @radix-ui/react-navigation-menu to my project. However, upon attempting to rebuild, I encountered the following error message: the error..
Interestingly, other components from the ...
0
votes
0
answers
35
views
angular 18 cli data grid plugin error NG0203: inject() must be called from an injection context
I'm having issues with a number of Angular data grid plugins... I've tried Angular DataTables, PrimeNG, Ngx-Datatable, Ag-Grid, Mat-Table and Kendo UI...
Every package after setup I get the following ...
-3
votes
0
answers
165
views
How to fix CVE-2024-5535 for Dockerfile using node:22.1.0?
We found that there is security vulnerability for the Dockerfile we are using.
The security vulnerability scan detected following
| CVE-2024-5535 | critical | 0.00 | openssl | 3.0.13-1~deb12u1 | ...
-1
votes
0
answers
15
views
How can I fix this error on my NestJs application: Type 'Role' has no properties in common with type 'Role'.ts(2559) (parameter) role: Role
enter image description here
Here is my GitHub code: https://github.com/borisalibeja/EcoFarm
I trying to build auth using RBAC, but I have some problems with the interface declared on the node Modules....
1
vote
1
answer
37
views
Node_Module is trying to use require (mysql)
I'm trying to set up a basic full stack web project with a SQL database using node.
I generally prefer to use import, and I've been using it for the duration of the project, so I have my type set to ...
-1
votes
2
answers
48
views
NextJS 14 (with electron) trying to use a .node addon - module not found
I have created a next.js application with version 14.2.2
I have built a nodejs addon using the following tutorial:
https://morioh.com/a/e1a6f79af449/how-to-write-nodejs-addons-using-c-and-n-api-for-...