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

Dropzone doesn't work with Next.js #93

Closed
3 tasks
hirotomoyamada opened this issue Jun 6, 2023 · 1 comment
Closed
3 tasks

Dropzone doesn't work with Next.js #93

hirotomoyamada opened this issue Jun 6, 2023 · 1 comment
Labels
bug Something isn't working problem Problem and cannot proceed wontfix This will not be worked on

Comments

@hirotomoyamada
Copy link
Member

hirotomoyamada commented Jun 6, 2023

Description

Related issue

Steps to reproduce

No response

Yamada UI Version

0.2.3

Browser

No response

Operating System

  • macOS
  • Windows
  • Linux

Additional Information

No response

@hirotomoyamada hirotomoyamada added bug Something isn't working problem Problem and cannot proceed labels Jun 6, 2023
@hirotomoyamada
Copy link
Member Author

hirotomoyamada commented Jul 5, 2023

If you're using the /pages directory in Next still, you HAVE TO DISABLE THE esmExternals FLAG:

// next.config.js
/** @type {import('next').NextConfig} */
const nextConfig = {
  experimental: {
    esmExternals: false, // THIS IS THE FLAG THAT MATTERS
  },
};
 
module.exports = nextConfig;

more

@hirotomoyamada hirotomoyamada added wontfix This will not be worked on problem Problem and cannot proceed and removed problem Problem and cannot proceed labels Jul 5, 2023
hirotomoyamada added a commit that referenced this issue Apr 30, 2024
🔄 Synced file(s) with hirotomoyamada/yamada-ui
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working problem Problem and cannot proceed wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

1 participant