Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fix] Fix website kepler.gl example #2338

Merged
merged 1 commit into from
Sep 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions website/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
// import 'babel-register';

import React from 'react';
import ReactDOM from 'react-dom';
import ReactDOM from 'react-dom/client';
import {Provider} from 'react-redux';
import store from './reducers';
import Routes from './routes';
Expand All @@ -33,9 +33,9 @@ require('./static/favicon.png');
const el = document.createElement('div');
document.body.appendChild(el);

ReactDOM.render(
const root = ReactDOM.createRoot(el);
root.render(
<Provider store={store}>
<Routes />
</Provider>,
el
</Provider>
);
1 change: 1 addition & 0 deletions website/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ const COMMON_CONFIG = {
// Imports the kepler.gl library from the src directory in this repo
'kepler.gl': libSources,
react: resolve(rootDir, './node_modules/react'),
'react-dom': resolve(rootDir, './node_modules/react-dom'),
'styled-components': resolve(rootDir, './node_modules/styled-components'),
'react-redux': resolve(rootDir, './node_modules/react-redux'),
'react-palm': resolve(rootDir, './node_modules/react-palm'),
Expand Down
Loading