Questions tagged [npm-build]

For questions regarding an NPM build script.

For questions regarding an NPM build script.

152 questions
0
votes
2 answers

npm run build fails with error originated from the build code

I'm building my app by running npm run build and it errors out with this output: /home/markalexa/blog/client/node_modules/react-dev-utils/node_modules/globby/index.js:47 ...taskOptions, ^^^ SyntaxError: Unexpected token…
wood
  • 75
  • 1
  • 7
0
votes
1 answer

##[error]Bash exited with code '1'. When deploying using Pipelines

This is my first time deploying something using Pipelines, and it isn't going very well I've setup my github repo with Pipelines, but my pipeline won't get deployed due to the error stated in the title. I've attached an image from the build code and…
Osama Billa
  • 21
  • 1
  • 1
  • 1
0
votes
1 answer

ReactJS Django admin page not found

I have a project with react and Django and after I ran the command npm run build and changed the Django static field settings to: 'DIRS': [os.path.join(BASE_DIR, 'frontend/build')], I can't access the Django administration…
Abdo
  • 36
  • 6
0
votes
1 answer

How to deploy nuxt.js project on cPanel file manager?

I tried many times by run the command npm run build, It gives me .nuxt folder and when I run the command npm run generate I got a folder named dist Please let me know how and what to do, to upload web application on Cpanel file manager?
0
votes
1 answer

Is it fine to create new builds to your production in react?

I am working on a react webapp which has its dev server on my local computer and I push its commits (from git) to my gcp instance. Each time after all the upgrades, I do a npm build and then put that build to my production. Just wanted to know if is…
Shivam Sahil
  • 4,055
  • 3
  • 31
  • 62
0
votes
1 answer

NPM - Website built using React does not build

I have created a website using ReactJS and is running perfect on my local machine. But when I run npm run build this is the error I got: > react-snap � pageerror at /personal-site/: SyntaxError: Unexpected token '<' ✅ crawled 1 out of 1…
Chris
  • 1
  • 1
0
votes
1 answer

Bitbucket Angular npm run build fails

I'm trying to set up a build pipeline on Bitbucket. I'm using a clean new Angular project. So far it looks like this - step: name: build frontend caches: - node condition: changesets: includePaths: -…
Roman Borovets
  • 818
  • 12
  • 25
0
votes
1 answer

npm build to generate two targets

Let's say I have core1.js, core2.js and wrapper.js. How do I config NPM to generate two targets: core.js which includes core1 and core2 all.js which includes everything The scenario is that I need publish all.js for the public; and core.js…
Yi Zhang
  • 33
  • 2
0
votes
1 answer

Why is my npm build for test picking up production properties?

I want to wire up two production-style builds in my React 16.13 project. One for the test environment and another for the production. I have configured the below scripts ... "scripts": { "start": "react-scripts start", "build":…
Dave
  • 15,639
  • 133
  • 442
  • 830
0
votes
2 answers

React build with env file from a command line

Is there any way to create React App build from a command like? So far I have in the shell script: npm install; npm run-script build:test; where build:test is bash -ac '. .env.test; react-scripts build' but that will refer to build:test script…
JackTheKnife
  • 3,795
  • 8
  • 57
  • 117
-1
votes
0 answers

Facing difficulty in using npm build

My project structure looks like this:- Project structure Now when I'm trying to deploy this on Render, I'm getting this error:- Render error Does this error is related to my project structure, if yes then how can I fix it.
Chaser
  • 1
  • 2
-1
votes
2 answers

I encountered a problem while doing Npm build in vanilla js. Please take a look

I was learning JavaScript and kind of ran into problem that said like this : Error Image Here's my package.json enter image description here So to explain, this is my vanilla js where i have installed parcel Vs code Terminal npm i parcel…
-1
votes
1 answer

Cannot find module 'Moment' at npm build

I am getting error Cannot find module 'Moment' at npm build step in GitHub Action. Not sure if it is installing 'Moment' module or not. The build is working fine on local machine.
uvcreation
  • 91
  • 1
  • 9
-1
votes
1 answer

useMemo error after building app with npm run-script build

After i use npm run-script build on my react site and run index.html browser throws error TypeError: Object(...) is not a function on this part of code {useMemo(() => , [bom,db,skipParams,columnNameMap,tableColumnOrder])}. What should i do…
marek
  • 39
  • 4
-1
votes
1 answer

Django collectstatic does not collect media files from react npm build folder

I have a frontend react app, after using npm run build it creates build folder with: build favicon.ico index.html service-woker.js static After using django's python manage.py collectstatic I noticed what django has done was that it pulls out…
Travis Tay
  • 350
  • 2
  • 10
1 2 3
10
11