You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am not using version 13.x of node (if so, please upgrade)
Description of the problem
Importing uuid into a Next.js component using the method in the docs:
import { v4 as uuidv4 } from "uuid";
causes an error:
Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.
Very helpful. That's as minimal and complete as it gets. I do nothing but import uuid into a component, do nothing else with it, and the error gets thrown.
To be clear, it's the "complete" and "verifiable" part of things that's lacking here. Feel free to fork that CodeSandbox project to put together a test case that demonstrates the problem. Failing that, this isn't an actionable issue.
Before you begin...
Description of the problem
Importing uuid into a Next.js component using the method in the docs:
causes an error:
Recipe for reproducing
Additional information
No response
Environment
The text was updated successfully, but these errors were encountered: