50,246
questions
0
votes
0
answers
57
views
React Build Error - Unexpected end of JSON input
I'm completely at a loss. I have a React app I've been working on for some time and yesterday I found I was unable to build it. I keep getting the following error on 'npm run build':
Creating an ...
-4
votes
0
answers
10
views
Good free lib for epg timeline [closed]
i need a free library like this one.
https://planby.app/
i need drag and drop and timeline functionality
i already tried lots of google results. But still cant be able to find something like this one.
1
vote
1
answer
31
views
HtmlBundlerPlugin error, import at-rules in CSS is not bug?
src/index.html
src/layout/header.html
src/css/common/iconfont.css
head.html:
<link rel="stylesheet" href="@styles/common/iconfont.css">
index.html:
<%~ include('layout/...
0
votes
1
answer
22
views
"Next.js Production Build Error: '.next' Directory Not Found"
Error: Could not find a production build in the '.next' directory. Try building your app with 'next build' before starting the production server. https://nextjs.org/docs/messages/production-start-no-...
1
vote
0
answers
24
views
mariadb npm package database keeps timing out even if it's under no load
I have a query function that takes an sql and executes it, like this:
import mariadb, { QueryOptions } from "mariadb";
const pool = mariadb.createPool({
host: process.env.DB_HOST,
...
0
votes
0
answers
14
views
How to resolve dependency conflict between next-auth and @next-auth/prisma-adapter
I am encountering a dependency conflict while trying to use next-auth with the @next-auth/prisma-adapter. Here's the error I get:
PS C:\Users\adeep\OneDrive\Documents\Desktop\next\donotbuy> npm ...
-2
votes
1
answer
43
views
Why am I always installing an old and insecure Cookie module? [closed]
When I install Remix or SvelteKit using Git Bash/PowerShell and NPM, I always get a message about 7 low-severity vulnerabilities. When I run NPM audit, as suggested, I receive the following report:
...
0
votes
1
answer
13
views
Bubblewrap fails with 'Could Not Reserve Enough Space for Object Heap' during gradlew assembleRelease
I'm trying to build a Trusted Web Activity (TWA) project using the Bubblewrap CLI on Windows, but I keep encountering an error when running the gradlew.bat assembleRelease command. Here's the full ...
0
votes
0
answers
16
views
Chakra UI variant prop is not changing the style of the Button component
I am trying to use Chakra UI for styling my application and the select styling props are not working.
For example, I tried using the Button component and the variant prop is not working but the size ...
0
votes
0
answers
22
views
How to setup global proxy for Node.js?
I have trouble with "@supabase/supabase-js" https://github.com/orgs/supabase/discussions/30490 and periodically have similar troubles with various other libraries. There are only one way to ...
-1
votes
0
answers
12
views
Customizing Keycloak 26.0.5 React UI: NPM Installation Errors & Embedded Mode Execution Issues
I'm working on customizing the React-based User Interface for Keycloak version 26.0.5. My goal is to extend/amend the existing UI components. However, I've encountered significant obstacles during ...
2
votes
1
answer
26
views
How to resolve 'Cannot find module './warning_messages.json''
I'm not able to run my node in NodeJs.
Facing this issue:
PS D:\PristineAIOPS\PristineAIOPS> npm cache clean --force
npm WARN using --force Recommended protections disabled.
npm ERR! code ...
0
votes
1
answer
23
views
Expo React Native - Adding node_modules/react-native/cli.js. node_modules/react-native already exists in the file map as a file
I installed a NPM package, which then seemed to mess up my dependency environment, causing my app to crash on launch with the error:
Error: TreeFS: Could not add directory node_modules/react-native, ...
-2
votes
0
answers
16
views
Cannot find type definition file for 'bson' issue in node 20.11.1 when trying to make a build
I am migrating from node 14.21.3 to node 20.11.1 and i have installed @types/bson in dev dependency of package.json file.
I tried installing bson npm in dependency of package.json file. But did not ...
1
vote
1
answer
74
views
Cannot find module 'react' Error When Running Expo Project in Web Browser
I'm working on my first React Native project using React Native with Expo, and I'm encountering a frustrating issue. The project runs fine on the Expo Go app on my Android device, but when I try to ...
0
votes
0
answers
24
views
After upgrading node and npm, "npm install" hangs unless I disable strict-ssl
I upgraded my node version from 16.14.2 to 20.18.0, and npm from 8.5.0 to 10.9.0. After doing this, the command npm install hangs forever.
Things get fixed if I execute
npm set strict-ssl false
What ...
1
vote
0
answers
46
views
Errors with trying to install electron
Trying to install electron in Windows Terminal as administrator with the command npm install electron and here are the errors from the terminal:
PS C:\xampp\htdocs\name> npm install electron
npm ...
1
vote
1
answer
754
views
How to set the registry URL in a project-level .npmrc file from an environment variable in an Azure Pipeline
i have a project level .npmrc with private npm registry url
registry=https://blabla.pkgs.visualstudio.com/_packaging/BlaBla/npm/registry/
always-auth=true
and my azure ...
1
vote
0
answers
15
views
rtf-stream-parser npm : Super expression must either be null or a function error with DeEncapsulate
I'm facing an issue with the DeEncapsulate class from the rtf-stream-parser library in my Angular application. I'm getting the following error:
**polyfills.js:5887 Uncaught TypeError: Super expression ...
1
vote
0
answers
18
views
Using tslog to log messages but the reported filename is not the file containing the call to the log function
I am quite new to tslog, typescript and the use of packages etc and having a problem that I can't figure out. All I want to achieve is track the flow of code execution by displaying the filename and ...
2
votes
0
answers
100
views
Cannot install corss-spawn 7.0.5 with npm
Using node version: v16.20.1
Trying to override cross-spawn to version 7.0.5 which is latest.
My package.json looks something like this.
{
"overrides": {
"cross-spawn": "7.0....
0
votes
0
answers
17
views
Puppeteer Error in NestJS Docker-Compose Setup: "qemu-x86_64: Could not open '/lib64/ld-linux-x86-64.so.2'"
I'm using NestJS with Puppeteer to generate PDFs in a Docker-Compose application. However, when I try to send an email with an attached PDF, I encounter the following error:
{
"statusCode&...
0
votes
0
answers
13
views
Multiple npm sessions on the same Windows session
Anybody knows any easy and handy way to have diferent npm configurations and user for diferent folders? I've got my ~/.npmrc with the global configuration that I need for my job (proxy connection, ...
0
votes
0
answers
27
views
Run Node script with packages downloaded by npx
Suppose I have this script (script.js):
const semver require('semver');
semver.satisfies('123');
I'd like to run it through Node, but without installing semver on disk. I thought of npx:
npx -p ...
0
votes
1
answer
50
views
+200
npm install optional dependency hanging on WS2L - works second time
Interesting problem with npm stalling, then running again the second time on dev Windows/WSL2 Ubuntu machine.
Windows 10, WSL2 running Ubuntu 22.04 LTS. No proxy or additional firewalls on network.
...
2
votes
1
answer
39
views
Black Duck Detect 9 - Exclude npm dev dependencies
I have recently updated from black duck detect version 6.9.1 to 9.0.0.
Previously in order to exclude dev dependencies from the list of components in the scan results from package.json and package-...
0
votes
0
answers
26
views
"You may need an additional loader to handle the result of these loaders" - issues with babel config potentially
Currently working with @mui/x-charts and keep getting the same error no matter what I try. I was trying to work with Chart.js and was getting errors to.
./node_modules/@mui/base/Popper/Popper.js 151:...
-1
votes
0
answers
17
views
Broken library twilio/conversations has several errors across several files
Im trying to run my react native app which used to work well (version 0.73.6). Now when i try to run npx react-native run-ios or run-android it has this error at @twilio/conversations/dist/rest-...
0
votes
0
answers
28
views
+100
Import typescript source code file (not transpiled code) in ionic app from node_modules package
I want to know if it's possible (not talking about: is it a "good practice") in an Ionic application to directly import typescript source code files from an installed module in node_modules ...
0
votes
1
answer
95
views
I get an npm error code when trying install npm modules
I'm trying to do an "npm i" and I get the above error. The full error is as follows
npm error require() of ES Module /usr/lib/node_modules/npm/node_modules/cacache/node_modules/p-map/index....
0
votes
1
answer
20
views
Two vite versions in one NPM package
This is a link to a project I forked
[https://github.com/guruyaya/vite5-plugin-replace]
If you look at the changes, the main differance is, in the code is, in package.json, where I replaced:
"...
0
votes
0
answers
17
views
How to set laravel reveb system when I host my file?
I set Laravel Reverb on my Laravel 11 proejct. WHen i Ran it loccally its smoothly working. but when I host it then here show me some error . in console. and its not working. Agaain when npm run build ...
1
vote
0
answers
19
views
Angular Global CLI not updating
I am trying to update my global Angular CLI version but I can see the previous version always showing.
What I am doing for that:
Uninstall the global angular version (sudo npm uninstall -g angular-...
-1
votes
1
answer
30
views
npm run production stops at 43 percent
I'm working on this codebase that's using laravel mix and laravel 10.
npm run dev, development, watch and even hot are all running fine but npm run production stops at 43%.
I've tried all the ...
4
votes
2
answers
157
views
keycloak-angular 26 is unable to find keycloak-js
In our Angular 18 application we are switching from Keycloak version 25 to 26. This combination of library versions in our package.json was running fine:
{
...
"keycloak-angular": &...
1
vote
0
answers
25
views
Vite build freezes randomly
I am developing a React App with Typescript and Vite.
At some point it started happening that running the command "vite build" which builds the project randomly freezes, i.e. nothing is ...
0
votes
0
answers
35
views
I'm trying to include @use _variables.scss in my main file but I keep getting an undefined mixin error
I'm trying to pull in different partials from the bootstrap's scss library. All the other basic files (functions, mixins, and bootstrap) seem to work except when I try to implement the _variables.scss ...
0
votes
0
answers
28
views
Jenkins and/or Docker sometimes break with: npm WARN cleanup Failed to remove some directories
our team often has random problems with NPM builds (usually with Angular, but I assume it's unrelated) where some few select error messages repeat. One of which is that a dependency cannot be found (...
-2
votes
1
answer
36
views
Why is npm install running forever (behind a corporate proxy)?
Running npm install behind a proxy is running forever or very slow (so slow that I never waited for it to complete), without anything helpful in the logs.
What can be the root cause?
I wanted to post ...
0
votes
0
answers
35
views
Trying to install node-cld fails with message "error C7626: unnamed class used in typedef name cannot declare ..."
(Please note that this is not a duplicate of Error C7626: Unnamed class used in typedef name cannot declare members other than non-static data members, since it is happening in an external library, ...
-2
votes
1
answer
35
views
Using Environment variable in package.json through dotenv-cli
In my react project want to start production environment through .env config port.
This is my .env file:
PORT = 3001
APP_BE_IP = 127.0.0.1
APP_BE_PORT = 3333
...
0
votes
0
answers
19
views
Could not resolve import when running es-dev-server with custom npm package
Hi i am creating 2 simple test projects where project A is a custom NPM package and project B consume it. When running it through es-dev-server i get Error: Could not resolve import "npm-project-...
0
votes
0
answers
22
views
Error: Video recording failed: Recording was stopped before any data could be produced
I've been getting an unhandled error when trying to record a video using react native. I am currently using npm version 10.8.2 and expo-camera version 15.0.16.
The current behaviour that I am ...
0
votes
0
answers
26
views
npm audit fix --force does not work and makes me go back and forth into updates
I'm making this project on react with npm, and while installing dependencies, it keeps telling me
8 vulnerabilities (2 moderate, 6 high) after my npm audit.
When i do npm audit fix --force, it gives ...
2
votes
1
answer
59
views
Is it possible to work with different versions of Angular?
I have version 17 of Angular CLI installed globally on my machine, however I would like to use version 15 of Angular in a specific project, how can I do this locally without having to change the ...
-2
votes
1
answer
36
views
Running npm update doesn't?
I ran npm outdated --depth=3. Got the report with about 65 outdated packages, so I ran npm update.
Results:
npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported
npm warn ...
0
votes
1
answer
8
views
How do I add the original commit hash to the commit message when using the NPM package gh-pages?
I have a Svelte/TS project with an NPM script called "deploy" that uses gh-pages to commit the contents of my build/dist folder to a branch called gh-pages for automatic deploy on Github ...
0
votes
0
answers
35
views
How can I resolve npm compatibility issues with Node.js v14.21.3 and lockfileVersion in Ubuntu?
I'm currently working on a project in Ubuntu that requires Node.js version 14.21.3. However, when I try to run npm install in my project directory, I get the following warning message:
`npm WARN read-...
0
votes
1
answer
31
views
Unable to install azurite - getting warnings on deprecated modules
I'm trying to install azurite but I'm getting the warning below. As a result, I'm unable to use azurite for my work. I already tried npm cache clear --force but didn't resolve anything.
Here is the ...
1
vote
1
answer
25
views
Install a NPM module in docker image and run it with golang app, using Google App Engine flex
I'm trying to install a NPM module in docker image and run it with golang app (flex), using Google App Engine.
main.go:
package main
import (
"fmt"
"os"
"os/exec&...