score:3
I was running into a similar problem and solved it by adding an anonymous volume to my node_modules directory in my docker-compose file. So the volumes in your docker-compose file would look like this:
volumes:
- './frontend:/frontend:cached'
- '/frontend/node_modules'
I got the idea from this blog post
Source: stackoverflow.com
Related Query
- docker not installing dependencies (node_modules) on host machine
- Styling react-select with CSS modules works on Sandbox but not on local machine
- Webpack not bundling node modules imported in dependency JS files
- Circular dependencies with node modules import using Browserify and React
- Returning 404 not found for the micro frontend dependencies from the host application
- How to fix: Npx create-react-app does not install everything only package.json and node modules
- Heroku git push not updating node modules
- I am getting error while installing node modules on windows 7
- Node import module not found when running inside docker
- Dependecy wdio-cucumber-framework is not getting installed when I use node version 12. Its installing till node 10
- React Routing works in local machine but not Heroku
- proxy not working for react and node
- React DOMException: Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node
- Docker Create react app hot reload not working
- Using gulp-browserify for my React.js modules I'm getting 'require is not defined' in the browser
- Could not find a required file. Name: index.html in react with docker compose
- CSS modules not working for react version 16.6.0
- webpack Invalid Host header when accessing from domain, not when through IP
- Editing code of react npm modules in node module folder
- "sh: 1: react-scripts: not found" In Docker
- content not from webpack is served from /app/public docker
- i tried to Polyfill modules in webpack 5 but not working (Reactjs)
- Error: Must use import to load ES Module: D:\node_modules\react-markdown\index.js require() of ES modules is not supported
- Node modules issue: Only one default export allowed per module
- Import css files from node modules in Next JS?
- Importing node modules to web worker in React/Webpack app
- Reactjs:How to hide node modules and webconfig in the devtools on production app?
- React Webpack not rebuilding when edited file outside docker container (on mac)
- Jest testing with Node - Timeout - Async callback was not invoked within the 5000ms timeout specified by jest.setTimeout
- Flow erroring "cant resolve module" when importing node modules
More Query from same tag
- Return 404 for invalid routes via nginx
- ReactJS - JSON and HTML markup
- Target specific CSS classes with Styled Components
- React/Axios - Display part of URL
- React hook form v7 Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()
- TypeError: Cannot read property'map' of undefined, I want to implement select option using map, but there is a problem
- Handle Error when the server is off in react js (TypeError Failed to fetch)
- Update React context from child component
- In React how to make input check box ticked based on object value
- React with MVC, simple app, getting error
- Huge freezes when rendering long selects in React
- getStaticProps with SWR "Error serializing `.initialData.config.transformRequest[0]` returned from `getStaticProps`"
- Chart.js not responsive
- How to fix "Maximum update depth exceeded.calls setState inside componentWillUpdate or componentDidUpdate." error in react?
- How can I insert json data from json file into rect and create table?
- DOM does not update on value change
- React App not connectiong to local server
- Does accessing NODE_ENV make sense in front end code?
- How to do two-way data binding in React?
- componentDidUpdate is firing constantly or never firing
- Unable to override Styled Component in React
- Destructured object as function parameter
- Accessing a variable from outside a function - Javascript, API, XMLHttpRequest
- render a react component that is stored in a list
- How to wait until all of the properties of received synchronous array are set in React-Redux?
- How can I pass a component's method as a prop to a child component? [REACT]
- TypeError: Cannot convert undefined or null to object React Validation
- Mocking bootstrap functions in react tests
- "'Undefined is not an object (evaluating 'row[0].val')" error in react native
- Webpack 4 Proxy (How to set up proxy url in webpack 4)