score:0
this has happened to me when i forgot to export one of my components or i imported one of my components incorrectly.
ex:
import homelistpage from './homelistpage'
will fail to import correctly if it is not the default export in the homelistpage file. your homepage is correct. check your other components that you import and make sure they are the default export in their files. you can also import a non-default export with
import { homelistpage } from './homelistpage'
Source: stackoverflow.com
Related Query
- Testing React Js Root Component
- Testing React Functional Component with Hooks using Jest
- React testing library on change for Material UI Select component
- Testing React Select component
- Testing react component enclosed in withRouter (preferably using jest/enzyme)
- Unit testing React click outside component
- React js - How to mock Context when testing component
- Accessing the State of a Functional Component with React Hooks when Testing with Enzyme
- access root element of react component
- Testing a React component with Enzyme. Typescript can't find instance methods
- How to mock out sub-components when unit testing a React component with Jest
- Jest/Enzyme Class Component testing with React Suspense and React.lazy child component
- Mocha, Enzyme: Unit testing custom functions in react component using enzyme
- Testing changes to React component state and spying on instance methods using enzyme
- Jest testing react component with react-intersection-observer
- Testing functions inside stateless React component with Enzyme
- Testing an error thrown by a React component using testing-library and jest
- Unit testing react component that makes ajax calls using JEST
- How to test Material UI Select Component with React Testing Library
- Testing React Component with React Router V6
- React testing component prop change with enzyme
- JEST + React Testing Library: should I render my component with a beforeAll before tests?
- Testing debounced function in React component with Jest and Enzyme
- _this.store.getState is not a function when testing react component with enzyme and mocha
- Jest snapshot testing React component with randomly generated id (uuid)
- D3js in a React Component Unit Testing using Jest/Enzyme
- Enzyme/Jest React Testing - Shallow connected component with react-redux > 6
- Testing a React Modal component
- Testing React Component className with enzyme
- Testing a React component that uses jQuery & window object
More Query from same tag
- How to play both mp4 and hls videos in reactjs?
- Chart .js Method is not implemented
- How do I refactor the modal into a separate file?
- Problems integrating the Vis network with React
- Checking multiple conditionals in reactjs
- ReactJS / Material UI : tick checkboxes for those that match
- Possible to destructure in JavaScript via bracket notation?
- How to make dispatch with redux-thunk with axios
- Iterating over a series of objects and inserting then into a Bootstrap table
- Adding styled component to bootstrap modal which is outside of usual class wrapper and called via ajax
- Having trouble using the react-masonry-component
- Getting Uncaught Error: Invalid offset NaN specified on React-virtualized when my width is smaller than my item size
- How do I check if a React component is expecting a prop?
- Having trouble enumerating a ListView in React Native
- Ant Design not loaded after deployment
- React/Redux: Global function that can dispatch actions?
- React Google Maps Unable to set scroll zoom off
- Min value for html type time does not work
- React sending variable to JS page /function
- how to use React.GA.plugin.require with multiple trackers
- Refactoring my loop react component from plain javascript to typescript
- How to debug React Router?
- React Hook useEffect has a missing dependency when passing empty array as second argument
- Control CSS keyframes animation progress with React
- Facebook Pixel fbq('track') isn't working in production
- Unable to change the legend symbol to rounded square in chartjs in React
- Why console.log is not called?
- How to style Rebass Switch
- Return value of Redux middleware
- React + Redux: Uncaught Error: Expected the reducer to be a function