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

Using export * from '...' in a page is disallowed #71

Open
NiallBunting opened this issue Mar 6, 2025 · 0 comments
Open

Using export * from '...' in a page is disallowed #71

NiallBunting opened this issue Mar 6, 2025 · 0 comments

Comments

@NiallBunting
Copy link

I'm importing this library into a react (v19.0.0) project using:

import React, { useMemo } from "react";
import { Line } from "react-chartjs-2";
import { Chart as ChartJS, registerables } from "chart.js";
import "chartjs-adapter-date-fns";

When I run a build I get the following issue:

  x Using `export * from '...'` in a page is disallowed. Please use `export { default } from '...'` instead.
  | Read more: https://nextjs.org/docs/messages/export-all-in-page
     ,-[/Users/me/app/node_modules/date-fns/index.js:177:1]
 174 | export * from "./nextMonday.js";
 175 | export * from "./nextSaturday.js";
 176 | export * from "./nextSunday.js";
 177 | export * from "./nextThursday.js";
     : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 178 | export * from "./nextTuesday.js";
 179 | export * from "./nextWednesday.js";
 180 | export * from "./parse.js";
     `----
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

1 participant