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

[@clerk/next-js]: output: export not supported with App Router #4647

Open
4 tasks done
ryansteil-pl opened this issue Nov 25, 2024 · 1 comment
Open
4 tasks done

[@clerk/next-js]: output: export not supported with App Router #4647

ryansteil-pl opened this issue Nov 25, 2024 · 1 comment
Labels
needs-triage A ticket that needs to be triaged by a team member

Comments

@ryansteil-pl
Copy link

Preliminary Checks

Reproduction

https://github.com/ryansteil-pl/clerk-nextjs-output-export-example

Publishable key

pk_test_Y29ycmVjdC1sZW11ci00Ni5jbGVyay5hY2NvdW50cy5kZXYk

Description

Steps to reproduce:

  1. Clone nextjs starter template
  2. Modify next.config.js to output: export
  3. Add necessary generateStaticParams()
  4. Run pnpm build

Expected behavior:

Build without error

Actual behavior:

pnpm build

> [email protected] build /Users/ryansteil/Developer/clerk-nextjs-output-export-example
> next build

   ▲ Next.js 15.0.3
   - Environments: .env.local

   Creating an optimized production build ...
 ✓ Compiled successfully
 ✓ Linting and checking validity of types    
 ✓ Collecting page data    

> Server Actions are not supported with static export.
 ELIFECYCLE  Command failed with exit code 1.

Environment

System:
    OS: macOS 15.2
    CPU: (10) arm64 Apple M1 Max
    Memory: 180.73 MB / 64.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.9.0 - ~/.nvm/versions/node/v20.9.0/bin/node
    Yarn: 1.22.21 - /opt/homebrew/bin/yarn
    npm: 10.1.0 - ~/.nvm/versions/node/v20.9.0/bin/npm
    pnpm: 9.14.2 - ~/Library/pnpm/pnpm
    bun: 1.0.27 - /opt/homebrew/bin/bun
  Browsers:
    Chrome: 131.0.6778.86
    Safari: 18.2
  npmPackages:
    @clerk/nextjs: 6.3.4 => 6.3.4 
    @types/node: ^22.9.0 => 22.9.3 
    @types/react: ^18.3.12 => 18.3.12 
    @types/react-dom: ^18.3.1 => 18.3.1 
    @types/react-syntax-highlighter: ^15.5.13 => 15.5.13 
    autoprefixer: ^10.4.20 => 10.4.20 
    clsx: ^2.1.1 => 2.1.1 
    next: 15.0.3 => 15.0.3 
    postcss: ^8.4.49 => 8.4.49 
    prism-react-renderer: ^2.4.0 => 2.4.0 
    react: ^18.3.1 => 18.3.1 
    react-dom: ^18.3.1 => 18.3.1 
    react-syntax-highlighter: ^15.6.1 => 15.6.1 
    tailwindcss: ^3.4.15 => 3.4.15 
    typescript: ^5.6.3 => 5.7.2
@ryansteil-pl ryansteil-pl added the needs-triage A ticket that needs to be triaged by a team member label Nov 25, 2024
@ryansteil-pl
Copy link
Author

ryansteil-pl commented Nov 27, 2024

this does build without error using the Pages Router (see reproducible repo here), but because of this Server Action, the build fails when using the App Router

@ryansteil-pl ryansteil-pl changed the title [@clerk/next-js]: output: export not supported [@clerk/next-js]: output: export not supported with App Router Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-triage A ticket that needs to be triaged by a team member
Projects
None yet
Development

No branches or pull requests

1 participant