score:1
finally, i added in the webpackhtmlplugin:
new htmlwebpackplugin({
// filename: 'index.html',
template: 'src/index.html',
inject: 'body' // here
})
and the error gone.
Source: stackoverflow.com
Related Query
- Error: Invariant failed: Hash history needs a DOM
- Invariant failed: Browser history needs a DOM
- Server Rendering-React Router Dom V^5.2.0 Error: Invariant failed: Browser history needs a DOM
- Test suite failed to run. Invariant Violation: _registerComponent(...): Target container is not a DOM element
- React Router DOM History Object Causes Typescript Error
- Browser history needs a DOM - react server side rendering
- Enzyme/Jest Testing Error - Invariant Violation: Target container is not a DOM element
- Invariant Violation: _registerComponent(...): Target container is not a DOM element
- How to fix "FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory" error
- Uncaught Error: Invariant Violation: findComponentRoot(..., ...$110): Unable to find element. This probably means the DOM was unexpectedly mutated
- Invariant Violation: Tried to register two views with the same name RNCSafeAreaProvider error with @react-navigation/stack
- I'm getting error using laravel and react "Invalid DOM property `for`. Did you mean `htmlFor`"
- Testing with Jest failed with Error: Error watching file for changes: EMFILE
- React Native: fetch request failed with error - TypeError: Network request failed(…)
- Test with reactjs renderIntoDocument keep failed due to required DOM
- ReactJS error Failed to compile 'define' is not defined
- Error : Failed to load bundle localhost:8081
- WebRTC getting Failed to execute 'addIceCandidate' on RTCPeerConnection error on console but can still display remote and local videos
- Create-React-App failed to compile | Import/First Error
- Warning: Hash history cannot PUSH the same path; a new entry will not be added to the history stack
- Invariant Violation: Minified React error #62
- React build issue, ERROR in ./src/index.js Module build failed (from ./node_modules/babel-loader/lib/index.js):
- DOMException: Failed to execute 'replaceState' on 'History': A history state object with URL
- react-native android error Failed to install the app native_modules.gradle' line: 170
- Can't deploy React Project. Error is Command failed with exit code 1
- React Native start failed with error code -4094 how to solve this ONCE for ALL?
- Gatsby Failed Build - error "window" is not available during server side rendering
- TypeScript React: RouteComponentProps types error or cant access history
- Apollo - React (Typescript) Invariant Error when building production build
- Invariant Violation: The root route must render a single element error in react-router 2 dynamic routing
More Query from same tag
- material-ui overwrite theme with useStyles / jss
- How to import js file in react using online CDN
- TypeError: Cannot read property 'getPosts' of undefined - useQuery hook, react Functional Components
- React router pass props in state undefined
- How to change a single value in a property in a nested object in an array
- Gutenberg Block -> Media Upload - Array of different images
- Can Proptypes Number in React take Float?
- React Material UI Updating TextField Values
- How to run react on browser?
- How to type unique letters only in input text box in html or react?
- React doesn't execute function in component
- Firebase+ReactJS: 'importScripts' is not defined
- react/flux- child component user events - should everything be routed via the dispatcher
- How do I get document and nested collection in a document in a Cloud Firestore collection using Version 9 of the Modular Web SDK?
- How to render a foo.md markdown file in react?
- How to use Next.js Link with multiple children?
- create-react-app subfolder projects do not lint
- Simple JS vanilla/react function rewrite, but how?
- Setting initial state from Redux
- How to store value from callback function in react state? (Google Maps)
- Jest Asynchronous API Mocking
- How to fetch element with 'name' attribute in react-testing-library
- How to map components and ensure the component has the same attribute individually
- Child Component is not updating whenever i set the state in reactjs
- How can i fix this type of error?
- Class not changing on scroll in react
- What is the correct approach when combining React, Redux and React-Router?
- Checkbox not working in react
- React router navigation multipage and with react scroll
- React How to render a component after onClick the correct way?