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

compatibility with next.js -- a lot of warnings and errors #809

Open
c9s opened this issue May 6, 2022 · 3 comments
Open

compatibility with next.js -- a lot of warnings and errors #809

c9s opened this issue May 6, 2022 · 3 comments

Comments

@c9s
Copy link

c9s commented May 6, 2022

really love this chart library, however, when I am trying to integrate this library with next.js, there are many warnings and errors

image

@c9s c9s closed this as completed May 6, 2022
@c9s
Copy link
Author

c9s commented May 6, 2022

image

@c9s c9s reopened this May 6, 2022
@c9s
Copy link
Author

c9s commented May 6, 2022

Text version:

Warning: Legacy context API has been detected within a strict-mode tree.

The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.

Please update the following components: Chart, ChartCanvas, CrossHairCursor, GenericChartComponent, GenericComponent, Label, XAxis, YAxis

Learn more about this warning here: https://reactjs.org/link/legacy-context
    at ChartCanvas (webpack-internal:///./node_modules/react-stockcharts/es/lib/ChartCanvas.js:314:3)
    at CandleStickChartWithAnnotation (webpack-internal:///./src/Chart.js:52:22)
    at div
    at main
    at div
    at Home (webpack-internal:///./pages/index.tsx:25:62)
    at MyApp (webpack-internal:///./pages/_app.tsx:37:27)
    at ErrorBoundary (webpack-internal:///./node_modules/next/dist/compiled/@next/react-dev-overlay/client.js:8:20746)
    at ReactDevOverlay (webpack-internal:///./node_modules/next/dist/compiled/@next/react-dev-overlay/client.js:8:23395)
    at Container (webpack-internal:///./node_modules/next/dist/client/index.js:323:9)
    at AppContainer (webpack-internal:///./node_modules/next/dist/client/index.js:825:26)
    at Root (webpack-internal:///./node_modules/next/dist/client/index.js:949:27)

@qiyang14
Copy link

I face the same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants