Questions tagged [npm-build]

For questions regarding an NPM build script.

For questions regarding an NPM build script.

152 questions
0
votes
1 answer

Unhandled 'error' event while building react.js/next.js app

Building on local server is okey, but if I try building on production linux server, then get error: > next build …
0
votes
2 answers

Unable to run serve -s build inside docker image for my react application

I'm trying to run my react application using the build folder via docker file. Everything seems to run properly when tried without docker, but when i run using the docker file build folder gets created but serve -s build command is not working…
0
votes
1 answer

Django and React - npm run watch/build very slow

I'm trying to make a django/drf and react project but it takes 15+ seconds for npm run build to finish. What are my options here? It's not feasible to wait that long after every change I make to the front end. Should I keep the react and django…
0
votes
0 answers

Remove "Unique ID" from app.js in Vue production build

Whenever i build a Vue app for production, it adds a unique id to each file built, like this: I do understand why this is done, however i am building this particular application for a ESP32…
Stian Blåsberg
  • 115
  • 2
  • 8
0
votes
0 answers

GitHub giving me 404 File not found

I am trying to put my web application up on GitHub but I keep getting a "404 File not found". Does anyone know what to do to fix this? Here is what I got: Here are how my files are set up: And I made a build file in my client folder as shown…
rmera1026
  • 13
  • 5
0
votes
0 answers

Why npm build will not include my types directory?

I have this project dir tree for my npm package development: src/ @types/ index.d.ts index.ts tsconfig.js package.json src/index.ts contents: import { MyObject} from "./@types"; const l:MyObject = new…
koalaok
  • 5,075
  • 11
  • 47
  • 91
0
votes
0 answers

How to resolve the error 134 while running the command npm run build in the react app?

I am running the "npm run build" command in the frontend folder and it is showing error 134. Here is my package.json file. { "name": "frontend", "version": "0.1.0", "private": true, "dependencies": { "@material-ui/core": "^4.12.3", …
0
votes
0 answers

Npm run build is not working, its displaying perfectly on the dev environment(local machine) after npm start

C:\Users\USER\Desktop\react2\reacting>npm run build reacting@0.1.0 build react-scripts build Creating an optimized production build... (node:1116) Warning: Accessing non-existent property 'cat' of module exports inside circular dependency (Use…
mikey
  • 1
0
votes
1 answer

swagger.json file not included in prod build

I have a swagger.conf.json file that serves my documentation for express API and all works well in dev, but for build, this file is not included. How do I include this file in build to server swagger documentation? My Project Folder: ├── app.ts ├──…
Pratheesh
  • 1
  • 1
0
votes
1 answer

NextJs Index.html file not generated in Public Folder

So i have a NextJS project going on. And everytime I try to run NPM RUN BUILD i don't get an index.html file in my public folder, and that causes google firebase deploy not work properly. It used to work before but not anymore, why is that?
0
votes
1 answer

Bootstrap-Icons font not included in PCF control

I'm trying to use Bootstrap Icons in my PCF control, and I'm having problems displaying the icon because the fonts are not being included Including Bootstrap-Icons: npm i bootstrap-icons produces the following package.json { "name":…
0
votes
1 answer

Do I need to compile my code on the ubuntu server?

When I run 'npm run build' in the vsCode terminal ,within a few seconds, it compiles. However, when I run 'npm run build' on the ubuntu 20.04 server after I've pulled my code from gihub, it takes hours and then never actually compiles. The reason is…
willmahon
  • 319
  • 4
  • 13
0
votes
2 answers

VUE build for production does not apply CSS

I have purchased this VUE template. From its documentation, if I run npm run install && npm run dev. It looks correct When I execute npm run build to get my production ready project. As you can see, it does not look the same: I have checked the…
Javi M
  • 97
  • 9
0
votes
1 answer

Webpack : from webpack.config.js to webpack.dev.js

I have a question regarding webpack config files. I'm new at this technology. So far everything was working well until I changed the name of the webpack.config.js file to webpack.dev.js. Now the js in the dist folder do not updated when I edit the…
Mln954
  • 57
  • 7
0
votes
1 answer

Deploy Frontend to GitHub Pages and Backend to Heroku

I tried deploying my backend to Heroku and after I did that my website was still working on http://localhost:3000/ but after I build the app for deployment on GitHub Pages the website stopped working on the Github page but works on the local…