Questions tagged [npm-build]

For questions regarding an NPM build script.

For questions regarding an NPM build script.

152 questions
0
votes
0 answers

npm run build generates a static html with lots of error

So first things first im using the latest next js as of the moment and also the only package im using is headless ui, i also have one component file in components folder. Now i tried making "tabs" using headless ui , now i tried to export it…
0
votes
0 answers

Facing Problem Build Next.js Project with (○ (Static) automatically rendered as static HTML (uses no initial props))

when i run npm run build Its give me error like: ○ (Static) automatically rendered as static HTML (uses no initial props) Route (app) Size First Load JS ┌ ○ / 137 B …
md abrar
  • 27
  • 1
  • 3
0
votes
0 answers

How can I import into a script from a publics folder in React Chrome Extension?

I'm creating a Chrome extension with React using CRA. I have some scripts that I need to run on specific pages. If I put them in the /src folder, they are not found when I run the extension because of the npm run build command. For version 3 of the…
0
votes
0 answers

How can I authenticate Azure Repos on my Self-hosted VM to install Node.js package with npm?

I have a Node.js package in my Azure DevOps Repository. I want to install the package using npm install and npm run build. It runs locally on VS Code without any errors, but I am not able to execute the same on an Azure Self-hosted VM. The error I…
0
votes
0 answers

npm run build with folder path having spaces

Trying to do CI\CD with TFSVC classic editor I tried npm tasks (install and build). But it errors. Any best resources to use. On build agent server, node js is installed on D drive. First tried in azure dev ops service CI pipeline. Then tried to…
Katta
  • 1
  • 1
0
votes
0 answers

Nginx running but not serving index.html

I'm trying to serve some html content that I built using npm build. The html and other static files are ready to be served and present inside the /var/www/build directory. When I do nginx -t with sudo privileges, I'm getting the follwoig…
Vansh
  • 29
  • 1
0
votes
2 answers

Why is Vue not building completely?

Files Screenshot Files Screenshot 2 I created a new Vue3 project using vue create and Vite (v4.3.1). I had no issues using npm run dev to edit and work on my project. However, when I used npm run build, it failed to correctly compile…
0
votes
0 answers

Typescript Errors Not Showing on npm build With Next JS

I am trying to convert a Next JS from javascript to typescript. I am making mistakes on purposes to see if the type checking is working. e.g. export class Knot { position: Vector2; locked: number; deletable: boolean; isLast: boolean; …
Vipul Rajan
  • 494
  • 1
  • 5
  • 16
0
votes
1 answer

NextJs postcss.config error with Tailwind CSS

I'm trying to deploy my NextJs Application on O2Switch and Cpanel. I have a Tailwind config for this app. Here you can see my Tailwind setup files: tailwind.config.js /** @type {import('tailwindcss').Config} */ const { fontFamily } =…
Karl
  • 79
  • 7
0
votes
1 answer

Error: Can't resolve 'dns' during npm run build in Dockerfile

I'm getting the following error with dns during npm run build in Dockerfile. ModuleNotFoundError: Module not found: Error: Can't resolve 'dns' in '/reactProj/node_modules/ioredis/built/cluster' dns is configured in the package.json to point to a…
ayeshas7
  • 81
  • 5
0
votes
0 answers

What are the benefits of not using semicolon to mark EOL on typescript?

I have worked on several projects on react with typescript. On those projects I have seen some of them are using semicolon to mark the EOL, but some of them are not. All the applications have no difference after building them as javascript…
0
votes
1 answer

nestjs build error for dev-dependency module ts-loader

I'm getting following Module Error for ts-loader while docker build ERROR [6/6] RUN nest build 3.9s ------ > [6/6] RUN…
Kaneki21
  • 1,323
  • 2
  • 4
  • 22
0
votes
1 answer

while npm build server that time geting error not building

i getting npm build error at server directory while building npm build log if pasted below and also package.json file also added any suggetions what problem..? Mar 18 03:55:19 PM ==> Cloning from…
kiran2157
  • 13
  • 3
0
votes
1 answer

[PM2][WARN] Environment [production] is not defined in process file - while using pm2 static serve by ecosystem.config.js

Using PM2 as server management, I used pm2 serve in ecosystem.config.js for serving my react app Here is my ecosystem.config.js: module.exports = { apps: [ { name: "my-app", script: "serve", instances: "1", watch:…
juls
  • 65
  • 5
0
votes
1 answer

npm run build fails "only when" executed using Jenkins execute shell

Below is the npm run build when ran using root user from the command prompt on a Ubuntu Linux host: As you can see from the output despite suggestions the command ran successfully as evident from the output of echo $? However, when I run the same…
Ashar
  • 2,942
  • 10
  • 58
  • 122