Uncaught ReferenceError::bundle.js:551 index.js/webpack

Viewed 9

I am doing a challenge which has webpack and babel installed.

It is set up with webpack (after much confusion) under a localhost:9000.

I am trying to create where the root is based within the application. The current working index.js looks the following

import React from "react";
import ReactDOM from "react-dom";

ReactDOM.render(<div>...</div>, document.getElementById("root"));

I am simply trying to place . Something along the lines of ..

ReactDOM.render(
  <Provider store={store}>
    <Router>
      <App />
    </Router>
  </Provider>,
    document.getElementById('root')
);

However I am getting this error

 Uncaught ReferenceError::bundle.js:551 Uncaught ReferenceError: store is not defined

I am very unfamiliar with webpack, any ideas whats happening here?

0 Answers
Related