Git Product home page Git Product logo

repro-nx-and-nextjs's Introduction

Reproducing issues with Nx and Next.js v13.0.1+

Build fails.

Related:

$ nx build web-app --verbose

> nx run web-app:build:production

info  - Skipping linting
info  - Checking validity of types
info  - Creating an optimized production build .
 >  NX   Cannot read properties of undefined (reading 'and')


TypeError: Cannot read properties of undefined (reading 'and')
    at webpack (~/nx-with-nextjs/node_modules/@nrwl/next/plugins/with-nx.js:53:64)
    at Object.config.webpack (~/nx-with-nextjs/node_modules/@nrwl/next/src/utils/config.js:60:163)
    at Object.getBaseWebpackConfig [as default] (~/nx-with-nextjs/node_modules/next/dist/build/webpack-config.js:1402:32)
    at async Promise.all (index 0)
    at async Span.traceAsyncFn (~/nx-with-nextjs/node_modules/next/dist/trace/trace.js:79:20)
    at async ~/nx-with-nextjs/node_modules/next/dist/build/index.js:448:33
    at async ~/nx-with-nextjs/node_modules/next/dist/build/index.js:433:13
    at async Span.traceAsyncFn (~/nx-with-nextjs/node_modules/next/dist/trace/trace.js:79:20)
    at async build (~/nx-with-nextjs/node_modules/next/dist/build/index.js:64:29)

 ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————

 >  NX   Running target "web-app:build" failed

   Failed tasks:

   - web-app:build:production

   Hint: run the command with --verbose for more details.

repro-nx-and-nextjs's People

Contributors

smonn avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.