Questions tagged [npm-build]
For questions regarding an NPM build script.
npm-build
164
questions
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 ...
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,...
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 ...
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 ...
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",
...
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 ...
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 ...
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 ...
-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} />} /&...
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 ...
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-...
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 (...
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'"
...
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 ...
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 ...