Questions tagged [npm-build]

For questions regarding an NPM build script.

For questions regarding an NPM build script.

152 questions
0
votes
1 answer

static website api request rewritten domain

I apologize if similar question already put, I am a beginner in this area and I was only able to find this question, which refers to S3 I am not using. Searching wild web brings me in all cases to a custom domain solution which I believe is either…
Kube Kubow
  • 398
  • 1
  • 6
  • 18
0
votes
1 answer

Why NextJS does not show images when ı add a photo in public folder after "npm run build"?

I am developing a project using next js. In the project I have developed, I use an API to copy images under public/images. I noticed something like this. After compiling the project with the npm run build, the copying process is successful and the…
Kubilay
  • 33
  • 5
0
votes
0 answers

I have to use npm run build every time I add a new class in to my html file. is there a way to automatically update

"scripts": { "build":"tailwindcss -i ./input.css -o ./css/main.css", "watch":"tailwindcss -i ./input.css -o ./css/main.css --watch"} I used this code to build and watch but then I have to always say npm run build in my terminal every time I add a…
0
votes
0 answers

ASP.NET Core publish actions, how to access NPM build files from previous step in .NET Core build step

I am working on configuring a deployment pipeline for my team. We are using Github Actions and I have most of it sorted, but ran into an issue when trying to run certain steps in a sequential order. The app is ASP.NET Core MVC with some Blazor…
d0rf47
  • 409
  • 8
  • 20
0
votes
0 answers

Next.js after building and opening site, the app crash at AWS EC2

I successfully build next.js app, opened the app at public IP, and after a couple of seconds the app crashed with this stack trace. At the developing / localhost environment, everything works fine. Could you please someone help me to understand how…
0
votes
1 answer

how to fix roll up error while building vue apps?

i want to deploy simple personal website using vue but when i try to npm run build this error come up help me please... i try deleting the image but onother similiar error come's up error during build: RollupError: Could not resolve…
0
votes
0 answers

Why do I report an error when I execute npm run build

enter image description here I want to execute npm run build to package into a dist folder, but when I execute this command, an error is reported. Is it related to the node version? I tried node versions 18.13.0 and 16.19.0, but it didn’t work.
bumper
  • 1
0
votes
0 answers

How to execute script.js once before parsing HTML while using"npm run build"?

While working on a recent tailwind project, I came across this issue. Let me explain it with an analogy. Let there are 10 divs and 10 img files inside a folder "asset". So, I linked 5 images with 5 divs respectively (1 img inside 1 div), and I…
0
votes
0 answers

fetch response always sends index.html content

I've created a react app with a node backend. I'm trying to build it in order to deploy it on Netlify, but when I'm trying to npm run build on the root folder on my terminal, I get this error: Could not find a required file. Name: index.html …
Itamar Ivri
  • 117
  • 6
0
votes
0 answers

npm run build. Errors when building a project on the vite builder

I want to build a vue.js + tailwind.css project for a production project that I developed in vite In the terminal I use the following command as instructed by npm run build but I get the following error: vite v3.2.3 building for production... ✓ 24…
0
votes
0 answers

I am trying to Create my react app to build. npm run build create then I get this error:

**i am using node v16.18.0 ** react-scripts\scripts\build.js:19 throw err; ^ TypeError: Cannot read properties of undefined (reading 'strict') at D:\medcheck\node_modules\webpack\lib\optimize\ModuleConcatenationPlugin.js:151:29 at…
0
votes
0 answers

Problem with building reactjs and nodejs project

I have a project with React front end and Node backend using ExpressJS. The backend server basically just returns a json that I can fetch data on my front end. On back end, there is a xml file. So the whole process is convert xml->json on express…
Alex Zhang
  • 13
  • 2
0
votes
0 answers

ModuleNotFoundError: Module not found: Error: Can't resolve 'multer'

Error when trying excecuting npm run build: ModuleNotFoundError: Module not found: Error: Can't resolve 'multer' in 'C:\Users\timo-\OneDrive\Desktop\gg\list\fahrzeugliste\pages\api\upload' Thats the file: import nc from "next-connect"; import…
FRBT
  • 11
  • 3
0
votes
0 answers

Module not found while npm build in dockerfile angular app

this is my Dockerfile # Use official node image as the base image FROM node:latest as build # Set the working directory WORKDIR /usr/local/app # Add the source code to app COPY ./ /usr/local/app/ # Install all the dependencies RUN npm install #…
0
votes
2 answers

.env.production variable undefined after Vue build

I have two .env files in my Vue 2.2.3 project, .env.development and .env.production. In each .env file I have assigned VUE_APP_API_URL variable to different values - one for my local development environment and the other the production…
mikeym
  • 5,705
  • 8
  • 42
  • 62