-
-
Notifications
You must be signed in to change notification settings - Fork 10
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
Attempted import error: 'Struct' is not exported from 'superstruct'. #177
Comments
Hi @NishantPatil307, what kind of project do you have? Is it Node or TypeScript? Is your project ESM or CommonJS? |
Im having this issue too with esm. it's a react project that I try to setup with particle.network https://developers.particle.network/recipes/configuring-particle-auth-core this current package appears to be a dependencies and throws this same error during build process |
Hi @irzhywau, which version of this package are you using? We've been making some updates lately to resolve issues we've seen with |
I want to give more insight here, it seems not working only in a create-react-app project, it seems working under a vite or next react project. |
Failed to compile.
./node_modules/@metamask/utils/dist/chunk-6C35XQOF.mjs
Attempted import error: 'Struct' is not exported from 'superstruct'.
The build process failed in a file named chunk-6C35XQOF.mjs within the @metamask/utils package.
The code in this file tries to import something called Struct from the superstruct library.
However, superstruct doesn't provide a public export for Struct.
The text was updated successfully, but these errors were encountered: