skip to Main Content

I am make a login and signup form.In app.js when i call login and sigup it throw error of module not found however i have given a correct path

import React, { Component } from 'react';
import SignUp from './components/Signup';
import Login from './components/Login';
import Forget from './components/forget';
import './App.css';

class App extends Component {
  render() {
    return (
      <div className="App">
        <h1>Sign Up</h1>
        <SignUp />

        <h1>Login</h1>
        <Login />

        <h1>Forgot Password</h1>
        <Forget />
      </div>
    );
  }
}

export default App;

Paths:
/Users/moiz/Form/form/src/componenets/Login.js

what should be the problem

2

Answers


  1. I think that the typo in >componenets< is causing the error.

    Paths: /Users/moiz/Form/form/src/[componenets]/Login.js
    
    Login or Signup to reply.
  2. Nothing too big just the error in the path where components has been misspelt.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search