Skip to main content

Questions tagged [npm-build]

For questions regarding an NPM build script.

npm-build
0 votes
0 answers
17 views

npm build for github pages links requests to base url instead of sub url

Running npm build using github actions and then deploying to github pages using my gh-pages branch. The index.html file loads fine from https://user.github.io/, but all other http requests go to that ...
Thomas's user avatar
  • 1
0 votes
0 answers
19 views

What is a good way to prevent file getting renamed when running npm run build

I am running npm run build for production and this is my script code. "scripts": { "dev": "vite", "build": "vite build", "preview": "vite preview", "lint": "eslint . --ext .vue,.js,...
Shinzie's user avatar
  • 15
1 vote
0 answers
16 views

Alternatives to libInjectCss from vite-plugin-lib-inject-css

I'm on the process of building a Vite application and I can see that the build generates three files which are significantly big. myProject.js 37kb myProject.umd.js 3671kb main.css 3657kb This is ...
Félix Jiménez González's user avatar
0 votes
0 answers
49 views

Using vite components in a react + webpack app slows the build process

Edit For some reason, webpack is not recognizing the vite project as a node dependency (which should, as it comes from node_modules), any ideas? Webpack analyzer for vite dependency + webpack Webpack ...
Félix Jiménez González's user avatar
0 votes
1 answer
25 views

Run NPM Build for different apps in same Repo

I have two apps that live in the same project. "start:dev": "nest start --watch", "start:worker:dev": "nest start --watch --entryFile main-worker", ...
itsjustcarlos's user avatar
0 votes
1 answer
276 views

ReactJS, Vite Project: "npm run build" keeps missing the images inside "assets" when it creates folder "dist"

I was trying to upload my ReactJS Project on cPanel and after running "npm run build" it created a "dist" folder, i noticed that my image files weren't on the generated assets ...
Joao Hugo Leda's user avatar
0 votes
0 answers
16 views

Long npm response time

Whenever I use npm, whether I use npm run build or npm --version, it hangs on my terminal for a long time. It's kind of inconsistent how long I have to wait, but the response is never immediate. I've ...
meliakru's user avatar
1 vote
1 answer
268 views

Angular build hangs without errors in DevOps pipeline

I have an Angular application, that is currently running without problems with Angular 13. Local build and deployment during DevOps YAML pipeline work well. We use an Npm@1 task to run "npm run ...
Katharina's user avatar
-1 votes
1 answer
85 views

Npm run build/start do not get all pages

I have the following code of my routes in a react/vite app: <Router> <Routes> <Route exact path="/" element={<LoginPage mensagemSucesso={mensagemSucesso} />} /&...
Danielson Silva's user avatar
0 votes
1 answer
126 views

Is there a way to resolve a GitHub octokit.js library issue while trying to build the react app?

So I am using React for an application that makes calls to GitHub RESTapi using their octokit sdk.When I run the application using npm start, the application runs perfectly. Only when I use the ...
Vaibhav Mishra's user avatar
0 votes
0 answers
39 views

React project's build produces chunk files instead of usable output

I'm trying to create a build for a react typescript repository to later deploy on gcp for a class activity. I'm using a public repo for this activity, out teacher chose it, (antoniopapa/react-...
Sara Rodríguez's user avatar
1 vote
0 answers
321 views

Post Angular 17 Upgrade ng start fails in webpack

We have recently upgraded from angular 12 to angular 17, post this when we are trying to build/ run the application, always getting following two errors. ./src/main.ts - Error: Module build failed (...
Srijit Das's user avatar
1 vote
1 answer
34 views

Npm build error: "Module not found: Error: Can't resolve './component/intro' in

When I try running npm build, I get this error: "Module not found: Error: Can't resolve './component/intro' in 'C:\Users\rogal\Winter2024\CS312\Py labs\test\react-attempt\react-attempt\src'" ...
PdShepc's user avatar
  • 13
0 votes
2 answers
931 views

You need to enable JavaScript to run this app - no API calls, no proxy

I created a sample React app using CRA. Created a simple component (just an h1 element) and built the app for production using npm run build. When I inspect index.html inside the /build folder, it has ...
Luka Markač's user avatar
0 votes
1 answer
65 views

Mongodb regex works on localhost but not on Vercel

I have the following code: import { User } from "@/mongo"; import { SearchBar, UserRating } from "./components"; type searchParams = { email?: string; }; export default ...
Ethan's user avatar
  • 739

15 30 50 per page
1
2 3 4 5
11