Skip to content

Error in launching "npm run dev #7

Open

Description

@master-cipher

error

Activity

  1. doctorinvest commented on Sep 15, 2021

    @doctorinvest

    I keep having the same issue even after using the modified package.json file. Who can I call or email to fix the issue since< i paid for the course an I really am getting frustrated with this stumping my progress.

  2. MichaelRichens commented on Sep 18, 2021

    @MichaelRichens

    Just ran into this problem, and found something saying that webpack had renamed contentBase to static
    webpack/webpack-dev-server#2958 (comment)

    Making the change in the webpack.config.js file fixed the error for me.

  3. tkline615 commented on Oct 15, 2021

    @tkline615

    Ran into this issue as well. Changing the contentBase to static in the webpack.config.js file worked for me as well:

    webpack/webpack-dev-server#2958 (comment)

  4. amanda-delongchamp commented on Jan 4, 2023

    @amanda-delongchamp

    I was getting an error: "export 'ReactDOM' (imported as 'ReactDOM') was not found in 'react-dom/client' (possible exports: createRoot, hydrateRoot)"

    I resolved by changing this by doing two things:

    1. I change the following statement in Main.js from
      import { ReactDOM } from "react-dom/client";

    to

    import ReactDOM from "react-dom/client;

    so just basically removing the curly brackets from the import statement.

    1. I commented out the following statement in Main.js:
      import { func } from "prop-types";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions