Next.js: 'Next export' prematurely terminates if static folder is large and does not export any html files

Created on 13 Nov 2019  路  1Comment  路  Source: vercel/next.js

Bug report

Describe the bug

I have a very large /static folder with lots of files and subdirectories. 'next export' prematurely terminates when it tries to copy my /static folder.

To Reproduce

  1. Create a large /static folder with many files and nested subdirectories.
  2. Run 'next export'. It will prematurely terminate after displaying 'copying "static" directory'
  3. Delete the /static folder
  4. Run 'next export'. It will run completely without issues.

Expected behavior

'next export' should be able to copy /static folder regardless of its size and subdirectory structure.

System information

  • OS: macOs
  • Version of Next.js: 9.0.8

Additional context

Original inquiry posted here: https://spectrum.chat/next-js/general/next-export-doesnt-export-any-html-files~4ba1820f-a133-4188-81fd-830817310b07

bug

Most helpful comment

Hi, this should be fixed in Next.js v9.1.4-canary.6. If you are still encountering problems with this, please reply with additional details so it can be investigated some more

>All comments

Hi, this should be fixed in Next.js v9.1.4-canary.6. If you are still encountering problems with this, please reply with additional details so it can be investigated some more

Was this page helpful?
0 / 5 - 0 ratings