question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Version 9.3.2 breaks my zeit.co build

See original GitHub issue

Bug report

Last hotfix version breaks the zeit.co build.

Describe the bug

Update to next.js version 9.3.2 and try to deploy your application via zeit.co. The next build step fails with:

 Automatically optimizing pages...
 > Build error occurred
  _error_Error {
  props: "Cannot find module 'private-next-pages/index.spec.tsx'",
    context: undefined,
   refs: {},
 updater: {
    isMounted: [Function: isMounted],
    enqueueForceUpdate: [Function: enqueueForceUpdate],
   enqueueReplaceState: [Function: enqueueReplaceState],
   enqueueSetState: [Function: enqueueSetState]
  },
    code: 'MODULE_NOT_FOUND'
 }
...

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

  1. Setup a typescript based nextjs project
  2. Setup deployment in zeit.co
  3. Start deployment
  4. See error

Expected behavior

It should just work as before. After downgrade, it works again.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

5reactions
hrasekjcommented, Apr 7, 2020

This error breaks also examples. I just copied blog-starter. Run npm install then npm run build and got this error:

Creating an optimized production build ..fs.js:885
  return binding.mkdir(pathModule._makeLong(path),
                 ^

Error: EEXIST: file already exists, mkdir '/home/polonium/www/cyclone/blog-starter/.next/cache/next-minifier'
    at fs.mkdirSync (fs.js:885:18)
    at new TaskRunner (/home/polonium/www/cyclone/blog-starter/node_modules/next/dist/build/webpack/plugins/terser-webpack-plugin/src/TaskRunner.js:1:634)
    at TerserPlugin.optimizeFn (/home/polonium/www/cyclone/blog-starter/node_modules/next/dist/build/webpack/plugins/terser-webpack-plugin/src/index.js:6:1316)
    at AsyncSeriesHook.eval [as callAsync] (eval at create (/home/polonium/www/cyclone/blog-starter/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:21:1)
    at AsyncSeriesHook.lazyCompileHook (/home/polonium/www/cyclone/blog-starter/node_modules/tapable/lib/Hook.js:154:20)
    at hooks.additionalAssets.callAsync.err (/home/polonium/www/cyclone/blog-starter/node_modules/webpack/lib/Compilation.js:1409:36)
    at AsyncSeriesHook.eval [as callAsync] (eval at create (/home/polonium/www/cyclone/blog-starter/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1)
    at AsyncSeriesHook.lazyCompileHook (/home/polonium/www/cyclone/blog-starter/node_modules/tapable/lib/Hook.js:154:20)
    at hooks.optimizeTree.callAsync.err (/home/polonium/www/cyclone/blog-starter/node_modules/webpack/lib/Compilation.js:1405:32)
    at AsyncSeriesHook.eval [as callAsync] (eval at create (/home/polonium/www/cyclone/blog-starter/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! blog-starter@1.0.0 build: `next build`
npm ERR! Exit status 1
0reactions
balazsorban44commented, Jan 30, 2022

This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Version 9.3.2 breaks my zeit.co build · Issue #11482 - GitHub
Update to next.js version 9.3.2 and try to deploy your application via zeit.co. The next build step fails with: Automatically optimizing pages..
Read more >
Use absolute imports in Next.js app deployed with ZEIT Now
My local build passed without setting NODE_PATH or configuring module resolution in next's-config while having set the baseUrl in tsconfig.json.
Read more >
ictime TimeTracking &amp; Reporting for Jira - Version history
Jira Server Version with latest JDC changes. CollapsedExpanded6.1.0.2Jira Server 9.0.0 - 9.3.22022-10-18Maintenance Download. Version 6.1.0.2 • Released ...
Read more >
Untitled
#2013 Haier company tv, Magnus puto meaning, Saarlouis galerie kleiner markt ... Liquid logic deuce coupe price, Xboxgamerk break my mind, 4-in-1, 96...
Read more >
Complete Examples - Authority Records - RDA Toolkit
These examples represent a particular agency's policies on the application of RDA instructions and are illustrative not prescriptive.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found