Questions tagged [npm-build]

For questions regarding an NPM build script.

For questions regarding an NPM build script.

152 questions
0
votes
0 answers

Creating StoryBook build using cross-env

We're using Storybook platform to build UI components and pages in isolation. According to Storybook documentation, an npm package can be published with npm publish command after it's been built. But first they say that it needs to be built with…
0
votes
2 answers

How to dynamically change API url during build to remove localhost part for production

I am trying to run a build of a Vue app where the urls for each of my API routes will drop the localhost:3001 used for development after the build. The problem is the production app is using nginx with reverse proxy to the production server. That…
mikeym
  • 5,705
  • 8
  • 42
  • 62
0
votes
0 answers

npm run build does not considers eslintrc.json file

I m working on reactjs web app, which has eslintrc.json file. In this file I have set few eslint rules off/warn so as to skip them instead of error. npm run lint works fine locally, but during build it gives eslint errors. //package.json "scripts":…
Abhishek Konnur
  • 503
  • 1
  • 9
  • 33
0
votes
1 answer

Endpoint redirection in Netlify - Deploy inside a folder

I have a built using create-react-app and hosted in Netlify. I created a file called _redirects in folder 'public', but it did not work. The redirect is not happening. /* /index.html 200 I tried change the package.json: "scripts": { .... …
0
votes
1 answer

Problems for laravel project on share hosting server where I cannot run npm run dev or build

I used jetstream laravel authentication and I used npm run dev and keep it running on my cmd while I developed my project locally. Everything was OK till here. But now I want to upload on a shared hosting. And I got it that I need to run npm run…
Veer
  • 13
  • 3
0
votes
0 answers

error running npm run build in my next.js project

When I run npm run build I get the error of the following screenshot, I have tried to investigate it and reading other topics I see that performing npm cache clean can solve the problem, but in my case this gives again other errors. So I don't know…
Juan Jesús
  • 105
  • 8
0
votes
0 answers

(React) Getting this error "The target environment doesn't support dynamic import() syntax" after trying to build react app using " npm run build"

Please help me with this: My react application can run using npm start, everything is working fine with this command. However, when I try to deploy my application to google cloud, I am stuck at the step where I need to build the application using…
Ly Bunvath
  • 21
  • 4
0
votes
1 answer

issue with npm run build - BABEL_OUTPUT is not a recognised commmand

When I run npm run build I get this error: > plugin-test@0.1.0 build-esm > BABEL_OUTPUT=esm babel src --extensions ".ts,.tsx,.js,.jsx" --copy-files --out-dir esm "BABEL_OUTPUT" не является внутренней или внешней командой, исполняемой программой или…
0
votes
0 answers

failed during deployment on netlify with an error : Build script returned non-zero exit code: 2

12:02:27 PM: Build ready to start 12:02:29 PM: build-image version: a49edbc55fc722f80f6b85963a5060f8d043a844 (focal) 12:02:29 PM: build-image tag: v4.8.1 12:02:29 PM: buildbot version: 3eebc38122efab6c175df98627632780779354a6 12:02:29 PM: Fetching…
0
votes
1 answer

Change environment variable value of react app using azure devops - Deployment on aws (s3)

I have a react application in which they are getting backend api address by using Environment variable. Below in the example: this._baseUrl = process.env.API_GATEWAY; In local development environment, development team create .env. file and set…
0
votes
1 answer

React typescript build cannot refer absolute path

I am publishing a react library which is written in typescript. And it is transpiled into Javascript in the build. Inside typescript I am using baseUrl in tsconfig.json and referring absolute path as follows import CollabsibleMenu from…
notnotundefined
  • 3,493
  • 3
  • 30
  • 39
0
votes
1 answer

Azure DevOps, Pipeline error ##[warning]Couldn't find a debug log in the cache or working directory JsNode

I am trying to upload my JS app into Azure DevOps and during the running pipeline, I'm getting an error on the NPM build stage. ##[warning]Couldn't find a debug log in the cache or working directory. I believe this is the reason why NPM build is…
LuckyLuke
  • 1
  • 1
0
votes
1 answer

how to include python files in node js build

I'm stumped here... I have a node server that calls to a python file for some quick data processing using the spawn approach (How to call a Python function from Node.js) ...and I got it working from the npm CLI. The issue now is, when actually…
André
  • 380
  • 4
  • 9
0
votes
2 answers

Azure pipeline npm build failing for React

I have been stuck at this for a while now and similar issues don't seem to help. In Azure DevOps, the pipeline fails at the npm build level. Agent: macOS-10.15 Can someone help please.
Joshua
  • 1,005
  • 1
  • 11
  • 16
0
votes
1 answer

npm build run package (react) terminal command

How to update "build" folder of a project after changes or updates? I tried npm update but can't update the build folder while I made changes of my project
muntsir89
  • 11
  • 2