Skip to content

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

Open
@NiallBunting

Description

@NiallBunting

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";
     `----

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions