Questions tagged [npm-build]

For questions regarding an NPM build script.

For questions regarding an NPM build script.

152 questions
1
vote
2 answers

How to add custom script in the index.html at the end of the body when using the npm run build command in Angular 7?

Is there anyway that we can append a script file in the index.html after we build our angular app? things that i have tried: { "build": { "builder": "@angular-devkit/build-angular:browser", "options": { ... }, "configurations": { …
john
  • 796
  • 1
  • 13
  • 34
1
vote
0 answers

Blank Page is Showing After building react app

After reading several stack solutions like add "homepage":"." in package.json() file, I still cannot get through this. After npm run build a build folder is generated inside my project folder. when I'm opening the build folder and trying to run the…
Avi Mishra
  • 11
  • 1
1
vote
0 answers

Create react app build error "Class constructor Parser cannot be invoked without 'new'"

im pretty new to react and have wrote an application, the application runs perfectly on the local server yet when i'm trying to build it for production i run into the above error, i cant find any reference to a Parser class, similar questions say…
0
votes
0 answers

Issues with npm run build and missing files

Every time i try to do npm run build and and run preview the site fails to load and i end up with the set of errors below telling me it failed to load resources :enter image description here. Although everything runs perfectly fine when i do npm run…
0
votes
0 answers

RpcIpcMessagePortClosedError: Cannot send the message

Doing the npm run build I'm getting the following error RpcIpcMessagePortClosedError: Cannot send the message - the message port has been closed for the process 146400. at…
0
votes
1 answer

Unable to run "npm run build" -- Getting a MODULE_NOT_FOUND

I am trying to publish an application that I have built to my godaddy server. However, when run the npm run build I get the following: PS C:\Users\trump\Documents\Rider…
0
votes
0 answers

vue cli build picks errors from bootstrap-vue-next

I am porting an application from vue 2 to vue 3 with composition api. We were using bootstrap in the older app, and after some research I realized we should use bootstrap-vue-next for vue 3. Now the problem is that, serving the app works fine, but…
Ali Makhmali
  • 1
  • 1
  • 1
0
votes
0 answers

npm run build generates build folder without index.js file

This is a first time I am creating my npm package, when build the npm package, build folder is getting created but there is no index.js file in the build folder As a result when I install this npm package to use, I am getting module not found…
asha
  • 1
0
votes
1 answer

React js: npm ERR! Missing script: "build"

I created a new app using the react template. In my github actions, When I first did the npm install, it went well Later I tried, the npm run build . It failed with npm ERR! Missing script: "build" But the build script is present in my…
indra257
  • 66
  • 3
  • 24
  • 50
0
votes
1 answer

`npm run test` giving error while import using paths

tsconfig.json "paths": { "themes/*": [ "assets/themes/*" ] } projects\myplugin\src\lib\modules\home\components\detail.component.less @import 'themes/theme.less'; this import working while build and package publish but not working in…
Hitesh Thakor
  • 471
  • 2
  • 12
0
votes
0 answers

npm build is not picking up latest changes

npm run build does not seem to pick up latest changes while npm start shows the changes. I am trying a few code changes in a few .ts files including change of a URL which should be immediately reflected. Upon running npm start I see the updated URL…
Paddy
  • 3,472
  • 5
  • 29
  • 48
0
votes
1 answer

npm run build does not consume swap memory on centos and errors heap out of memory

I run npm run build give memory issue like below: # npm run build > fuse@9.0.0 build > ng build 93% after chunk asset optimization SourceMapDevToolPlugin main-es2015.js generate SourceMap <--- Last few GCs ---> [6311:0x50b4290] 182740 ms:…
Ashar
  • 2,942
  • 10
  • 58
  • 122
0
votes
0 answers

Algolia type conflicts with react

Im making an app that uses Instantsearch-react-hooks. On the development server everything runs fine. But when i try to build the project bellow errors occure: node_modules/@algolia/ui-components-highlight-vdom/dist/esm/Highlight.d.ts:10:13 - error…
0
votes
0 answers

Moving files with npm build

I have a project I created with create react app. What I would like to achieve is when I run npm run build I want to move the files into the root directory without creating another folder. The reason for this is because I have my GIT repo setup so…
Aragol
  • 11
  • 1
0
votes
0 answers

Failed to minify the code from this file: ./node_modules/tslib/tslib.es6.js:296:13

when i npm run build alert:Failed to minify the code from this file: ./node_modules/tslib/tslib.es6.js:296:13,because i import antd/g2,i have upgrade babel7 and my local node 20,npm is 9 how to fix it and can build successful