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

next export is not working with app directory #46111

Closed
1 task done
zeakd opened this issue Feb 19, 2023 · 4 comments
Closed
1 task done

next export is not working with app directory #46111

zeakd opened this issue Feb 19, 2023 · 4 comments
Labels
bug Issue was opened via the bug report template.

Comments

@zeakd
Copy link

zeakd commented Feb 19, 2023

Verify canary release

  • I verified that the issue exists in the latest Next.js canary release

Provide environment information

Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 21.2.0: Sun Nov 28 20:28:41 PST 2021; root:xnu-8019.61.5~1/RELEASE_ARM64_T6000
Binaries:
  Node: 18.14.0
  npm: 9.3.1
  Yarn: 1.22.19
  pnpm: 7.24.2
Relevant packages:
  next: 13.1.7-canary.21
  eslint-config-next: 13.1.6
  react: 18.2.0
  react-dom: 18.2.0

Which area(s) of Next.js are affected? (leave empty if unsure)

App directory (appDir: true)

Link to the code that reproduces this issue

npx create-next-app

To Reproduce

Hi. basic create-next-app setting raises this issue

스크린샷 2023-02-19 오후 7 07 19

  1. add script
"export": "next export",
  1. and npm run build && npm run export
info  - Exporting (2/2)
PageNotFoundError: Cannot find module for page: /
    at Object.getPagePath (/Users/deokseong.kim/Works/Toss/playgrounds/next-app-dir/node_modules/next/dist/server/require.js:77:15)
    at /Users/deokseong.kim/Works/Toss/playgrounds/next-app-dir/node_modules/next/dist/export/index.js:384:48
    at Array.map (<anonymous>)
    at /Users/deokseong.kim/Works/Toss/playgrounds/next-app-dir/node_modules/next/dist/export/index.js:375:69
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Span.traceAsyncFn (/Users/deokseong.kim/Works/Toss/playgrounds/next-app-dir/node_modules/next/dist/trace/trace.js:79:20) {
  code: 'ENOENT'
}

Describe the Bug

using app directory and next export is not working.

Expected Behavior

should be work with basic config.

Which browser are you using? (if relevant)

No response

How are you deploying your application? (if relevant)

No response

@zeakd zeakd added the bug Issue was opened via the bug report template. label Feb 19, 2023
@HummingMind
Copy link

It's not supported yet. Check out the App Directory Roadmap.

@zeakd
Copy link
Author

zeakd commented Feb 20, 2023

Thanks. I'll leave it open. Please close it if it's being managed elsewhere.

@timneutkens
Copy link
Member

Going to close this as pointed out it's on the roadmap and not a bug.

@github-actions
Copy link
Contributor

This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 31, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue was opened via the bug report template.
Projects
None yet
Development

No branches or pull requests

3 participants