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

build failed when adding docx. import issue #2674

Open
dhallX opened this issue Apr 19, 2024 · 1 comment
Open

build failed when adding docx. import issue #2674

dhallX opened this issue Apr 19, 2024 · 1 comment

Comments

@dhallX
Copy link

dhallX commented Apr 19, 2024

I saw this issue was a old issue but none of the change helped...

I have a problem with my next.is @14.0. 3 app when i install and use the package in localhost the package works! however the moment i try to build the app i get this:

image

image

I am sure this has to do with a webpack setup but i don't know what it should be so that the proper module are imported.

below is my config file

`const nextConfig = {
reactStrictMode: false, // Enable React strict mode for improved error handling
swcMinify: true, // Enable SWC minification for improved performance
experimental: {
optimizePackageImports: [
'react-big-calendar',
'@mui/lab',
'@mui/x-date-pickers',
'material-react-table',
'react-calendar-timeline',
'react-hook-form',
'@emotion/react',
'@emotion/styled',
'aws-amplify',
'uuidv4',
'html2pdf.js',
'dayjs',
],
},

images: {
remotePatterns: [
],
},
};

module.exports = nextConfig;`

@OperationsOfficerPRMG
Copy link

I think this is related to #2635

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

2 participants