1

I have created a simple create-react-app and first it was running perfectly and once i add some codes with some modules(axios,react-router-dom etc..) i get the following error message. I'm new to react.js and have no idea of how this is happening. Any idea?

1
  • 1
    Can you write a minimum reproducible example? Commented Jul 9, 2020 at 17:28

1 Answer 1

1

I found this error now. You should not import Link by this way:

import Link from "react-router-dom/modules/Link";

This way is better:

import { Link } from "react-router-dom";
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.