score:2
I had similar problems like yours. I solved this problem by this undocumented feature of visual studio 2017,2019:
BY manual editing,
You can add the following post-build event to package.json
"-vs-binding": { "AfterBuild": [ "build" ] }
by GUI,
in task runner explorer window,
select "build" task and let popup context menu open using right-mouse-button,
select bindings -> After build (make its preceding check box on)
this will add "-vs-binding" property to your package.json
Either one is okay. This works on vs 2017 and may works on vs 2019 either.
VS2017,2019 nodejs project build process seems
not to actually call my "build" script at all.
we should specify the "build" script as post-build event
for vs default nodejs build action.
It seems weired. I hope Microsoft solve this fault using patches.
Source: stackoverflow.com
Related Query
- build script don't runs when creating a Node.js and React app in Visual Studio
- Breakpoints not working debugging React app in Chrome through Visual Studio Code on Windows 10 and WSL2
- How to reduce react app build time and understanding behaviour of webpack when bundling
- In Visual Studio 2012, I get warnings and squiggly lines when trying to write JSX with React JS
- Creating a (.NET 6 based) website project with ASP.NET Core and React (TypeScript) in Visual Studio 2022?
- Visual Studio Code is not npm start-ing my React JS app when debugging
- after i installed npm on my visual studio terminal to create react js app, when i node start the server its display error: module not found
- Visual Studio 2019 React Typescript Too many errors when adding CRA v4 app as SPA to a WEB project
- React Native 0.64 won't build iOS app after updating Xcode to 12.5 and iOS to 14.5
- Error when deploying react app and it keeps sayings << Plugin "react" was conflicted between "package.json » eslint-config-react-app » >>
- Missing Script when I run npm start to create React app
- "Failed to load resource: net::ERR_HTTP2_PROTOCOL_ERROR" for React app after upgrading to Visual Studio 2019 16.10.0
- React app runs locally, crashes when on Heroku error code=H10
- Why does production build of React app (with Webpack and Babel) use wrong development env with HMR, which causes errors?
- npm ERR! 401 Unauthorized: @babel/core@7.1.0 when using creating new react app
- How to analyze create react app build size and reduce it?
- Electron + React + Typescript + Visual Studio Code? Debug? Can I debug an electron-react app in visual studio?
- "You require appropriate loaders", Using react native and expo. App fails to compile on the web, but runs on android
- How to build react app using Dockerfile.dev and Yarn
- How can I start my node server and react app at the same time?
- Creating an installer for Electron React JS app - reactJS component doesn't load when run after install
- Visual Studio Code unbound breakpoint Node JS React TypeScript
- Prod build of React App allows React Dev Tools and show components in source tab inside Browser
- how to build a standalone desktop app built with react, using a node backend, and wrap both frontend and backend in electron as a desktop app?
- The app build fails when using React Native CLI
- Create React App - (ESLint) Failed to load config "shared-config" to extend from. Referenced from: <PATH> in Visual Studio
- How to Debug a React App in Visual Studio 2019 using the "Blank Node.js" Template
- How to make Node and React app to share classes
- Build version of react app giving wrong links to CSS and JS files
- React build fails when sass uses calc and var together
More Query from same tag
- unit testing styled component in react
- can't I dispatch actions in sequence?
- Iterate over array of object using map till the second last object
- How to fix npm audit fix issues?
- aligning image with center of page css
- How to mock a script tag in jest
- Spring boot controller mapping to react component
- Can't work setTimeout in componentDidMount
- React.memo is not available when working with Typescript?
- Loop rendering with Arrays in Array in React
- How to test/mock API calls using JEST in Create react app
- How to configure a Google App Engine nodejs8 Standard Environment for React app?
- React Router 3 not rendering correct component
- Get custom attributes from material ui text field inside onChangeHandler
- react + socket.io socket.on event is not updating state properly
- Scrolling only side menu div and others should be fixed when menu is open
- How to save typed values inside the initialValues of Formik data?
- Uncaught (in promise) Error: Request failed with status code 404 when going to the profile
- The setColumn can only replace the first column
- How do you rerender a React component when an object's property is updated?
- Unable to display react-toastify
- How to post with Axios in React?
- Use useState correctly
- Next JS add async attribute for generates a list of script files
- Next js:- Reload Image even src path is same using setState
- How can I set default value after actions in useEffect when I use custom hooks
- Loop through array in react onclick
- i want to Rerender antd select component default value on app language change
- React useState not updating value in async function
- How to setParams using useEffect and avoid getting infinty renderings?