Questions tagged [npm-build]

For questions regarding an NPM build script.

For questions regarding an NPM build script.

152 questions
1
vote
1 answer

SvelteKit: 'npm run build' error in AWS CodeBuild

I have a SvelteKit app that I'm deploying using AWS CodePipeline. My pipeline gets triggered on pushes to CodeCommit. But CodeBuild fails with the following error messages: npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! project-title@0.0.1…
1
vote
1 answer

process for updating a react app on server

I have a react/next.js app live on an ubuntu server, with nginx and pm2 running client side and server.js. I have made modifications locally and pushed the changes to github. I need to do a git pull. Do I need to stop pm2 or npm before I do a git…
Danny_P
  • 21
  • 5
1
vote
1 answer

CoreUi Laravel Admin Template Failed to build using node-gyp@3.8.0

I am installing laravel CoreUi Admin template when I ran npm install it gives me build error. npm ERR! code 1 npm ERR! path D:\laragon_new\www\sms\coreui\node_modules\deasync npm ERR! command failed npm ERR! command C:\windows\system32\cmd.exe /d…
B L Praveen
  • 1,812
  • 4
  • 35
  • 60
1
vote
0 answers

getting a Compilation error during npm run build

On executing the npm run build command I'm getting the following error C:\Users\syedk\cutQ\cutq-app>npm run build > cutq-app@0.1.0 build C:\Users\syedk\cutQ\cutq-app > react-scripts build Creating an optimized production build... Failed to…
1
vote
0 answers

Deploy vue js with symlink on vps always error npm build

I've just deployed my Vue project into my Cpanel using ssh. Let's say, I clone the repo to /var/www/ it will generate the repo right, so it will generate the repo-generated folder in /var/www/. So we call it, /var/www/repo-generated. And then I get…
Bin Ski.
  • 849
  • 1
  • 8
  • 10
1
vote
0 answers

Unable to send props to react component imported from index.esm.js file

I'm trying to test the build file for the npm package I wish to publish. I have used rollup to build, generated files are - index.cjs.js, index.cjs.js.map, index.esm.js. when I import the esm.js file which has my react component defined and I send…
Min Yoongi
  • 396
  • 5
  • 16
1
vote
1 answer

Project made with three.js/react/vite breaks when built using vite and the typescript compiler, but works fine using npm run dev (dev server)

So I decided to make a project using three.js, react and vite. Later on I realized I did not want to really bother with react, and so the react code in my project is mostly skeleton code (like the default App component, etc). I decided to just leave…
dmscs
  • 255
  • 2
  • 12
1
vote
1 answer

Webpack TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined

I am fairly new to using webpack in webapps. I am trying to build the vue js and asp.net core SPA using nodejs and webpack. I am facing this error in the screenshot. I have installed the all the dependencies using npm then I tried to run .net core…
1
vote
0 answers

Code compiles in VSCode but not on ubuntu server

I'm new to deploying an app, as this is the first time I've done it. I'm trying to deploy my mern app to an aws ec2 instance with the intention to use mongodb atlas, I'm using a ubuntu 20.04 server. I'm following this guide…
willmahon
  • 319
  • 4
  • 13
1
vote
1 answer

Symfony/encore does not compile without devDependencies

I use Symfony5 with encore, everything was fine until I tried to deploy to production. Run npm install --production to install dependencies. Run npm run build --prod to compile. Does @symfony/encore-webpack really have to be devDependency? I tried…
1
vote
1 answer

nuxt js - terser - Call retries were exceeded

When I am building Nuxt Js app using AWS Build. Getting below error frequently: [fatal] Nuxt build error ERROR in app.f235f70.js from Terser Error: Call retries were exceeded at ChildProcessWorker.initialize…
urvish
  • 27
  • 2
  • 10
1
vote
1 answer

How can I build a React app and take the URL to the backend from a file outside the build?

I have a React app where I use a variable for setting the URL of the backend. When I build it, the URL goes in the static files of the build. I need to build a React app where I can change URL of the backend, taking it from an external file…
Kambei
  • 458
  • 9
  • 23
1
vote
3 answers

npm ERR! reminder@0.1.0 build: `CI= react-scripts build`

I have a basic reactjs app. I want to deploy it to netlify. To deploy it on netlify, I need to build it first. But when I run npm run build it throws following error. My npm version is 6.14.8. CI= react-scripts build 'CI' is not recognized as an…
Amarjeet
  • 21
  • 1
  • 6
1
vote
0 answers

How to include non JS files when building with npm

I'm using a library that requires binary and txt files in order to work. In its API, I need to call a set_path() method with the path to said files. The issue is these files aren't included in the lib folder when building the project with npm, so…
Daniel Hernandez
  • 164
  • 2
  • 13
1
vote
1 answer

npm run build error when running "npm run build"

Getting error when running npm run build: Can any one help me to fix this issue. Package.json file: { "name": "confusion", "version": "1.0.0", "description": "This is a website for Ristorante Con Fusion", "main": "index.html", "scripts":…
Petros Belachew
  • 37
  • 1
  • 10