Skip to content

with-next-page-transitions example is failing #6086

Closed
@mkaraula

Description

@mkaraula

Examples bug report

Example name

with-next-page-transitions

Describe the bug

After following the description on https://github.com/zeit/next.js/tree/canary/examples/with-next-page-transitions and accessing the site, the server throws an Error

TypeError: Cannot read property 'isRequired' of null
    at Object.<anonymous> (/Users/marcokaraula/repos/nextjs-examples/with-next-page-transitions/node_modules/next-page-transitions/lib/PageTransition.js:300:37)
    at Module._compile (internal/modules/cjs/loader.js:721:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:732:10)
    at Module.load (internal/modules/cjs/loader.js:620:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:560:12)
    at Function.Module._load (internal/modules/cjs/loader.js:552:3)
    at Module.require (internal/modules/cjs/loader.js:657:17)
    at require (internal/modules/cjs/helpers.js:22:18)
    at Object.<anonymous> (/Users/marcokaraula/repos/nextjs-examples/with-next-page-transitions/node_modules/next-page-transitions/lib/index.js:3:46)
    at Module._compile (internal/modules/cjs/loader.js:721:30)
TypeError: Cannot read property 'isRequired' of null
    at Object.<anonymous> (/Users/marcokaraula/repos/nextjs-examples/with-next-page-transitions/node_modules/next-page-transitions/lib/PageTransition.js:300:37)
    at Module._compile (internal/modules/cjs/loader.js:721:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:732:10)
    at Module.load (internal/modules/cjs/loader.js:620:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:560:12)
    at Function.Module._load (internal/modules/cjs/loader.js:552:3)
    at Module.require (internal/modules/cjs/loader.js:657:17)
    at require (internal/modules/cjs/helpers.js:22:18)
    at Object.<anonymous> (/Users/marcokaraula/repos/nextjs-examples/with-next-page-transitions/node_modules/next-page-transitions/lib/index.js:3:46)
    at Module._compile (internal/modules/cjs/loader.js:721:30)

To Reproduce

  1. npx create-next-app --example with-next-page-transitions with-next-page-transitions
  2. cd with-next-page-transitions
  3. npm install
  4. npm run build
  5. npm start

Additional context

I've found this Issue but I think its different because it was a problem during the build. for me the build works fine. Full output:

~/repos/nextjs-examples/with-next-page-transitions $ npm install && npm run build && npm start
npm WARN with-next-page-transitions@1.0.0 No repository field.

audited 6486 packages in 3.636s
found 0 vulnerabilities


> with-next-page-transitions@1.0.0 build /Users/marcokaraula/repos/nextjs-examples/with-next-page-transitions
> next build

[18:06:26] Compiling client
[18:06:26] Compiling server
[18:06:28] Compiled server in 1s
[18:06:31] Compiled client in 4s

> with-next-page-transitions@1.0.0 start /Users/marcokaraula/repos/nextjs-examples/with-next-page-transitions
> next start

> Ready on http://localhost:3000

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions