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

Running 'npx nx run APP_NAME/build/development` in new @nx/next app fails #17863

Closed
1 of 4 tasks
erikash opened this issue Jun 29, 2023 · 1 comment · Fixed by #17866
Closed
1 of 4 tasks

Running 'npx nx run APP_NAME/build/development` in new @nx/next app fails #17863

erikash opened this issue Jun 29, 2023 · 1 comment · Fixed by #17866
Assignees
Labels
outdated scope: nextjs Issues related to NextJS support for Nx type: bug

Comments

@erikash
Copy link

erikash commented Jun 29, 2023

Current Behavior

Running 'npx nx run APP_NAME/build/development` in new @nx/next app fails

Expected Behavior

It should pass

GitHub Repo

https://github.com/erikash/nx-next-js-repro

Steps to Reproduce

  1. npx nx run web:build:development

Nx Report

npx nx report

 >  NX   Report complete - copy this into the issue template

   Node   : 18.14.1
   OS     : darwin-arm64
   npm    : 9.3.1

   nx                 : 16.4.0
   @nx/js             : 16.4.0
   @nx/jest           : 16.4.0
   @nx/linter         : 16.4.0
   @nx/workspace      : 16.4.0
   @nx/cypress        : 16.4.0
   @nx/devkit         : 16.4.0
   @nx/eslint-plugin  : 16.4.0
   @nx/next           : 16.4.0
   @nx/react          : 16.4.0
   @nrwl/tao          : 16.4.0
   @nx/web            : 16.4.0
   typescript         : 5.1.6

Failure Logs

npx nx run web:build:development


   ✔    1/1 dependent project tasks succeeded [0 read from cache]

   Hint: you can run the command with --verbose to see the full dependent project outputs

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


> nx run web:build:development

- info Creating an optimized production build...
- info Compiled successfully
- info Skipping linting
- info Checking validity of types...
- info Collecting page data...
- info Generating static pages (0/4)
- info Generating static pages (1/4)
- info Generating static pages (2/4)
- info Generating static pages (3/4)
- info Generating static pages (4/4)
- info Finalizing page optimization...
Route (app)                                Size     First Load JS
┌ ○ /                                      135 B          76.9 kB
└ ○ /api/hello                             0 B                0 B
+ First Load JS shared by all              76.8 kB
  ├ chunks/7fd0f9f1-762a07e45b12abd7.js    50.5 kB
  ├ chunks/9-cf9dd99d8c81b14c.js           24.4 kB
  ├ chunks/main-app-f95c953e09ad90fc.js    215 B
  └ chunks/webpack-fc1a5e99df276ef1.js     1.64 kB
Route (pages)                              Size     First Load JS
─ ○ /404                                   178 B          85.9 kB
+ First Load JS shared by all              85.7 kB
  ├ chunks/main-f3386f0de7f4d196.js        83.9 kB
  ├ chunks/pages/_app-415a5670032b79f5.js  190 B
  └ chunks/webpack-fc1a5e99df276ef1.js     1.64 kB
○  (Static)  automatically rendered as static HTML (uses no initial props)
 >  NX   Cannot find file "../src/utils/config" with any of the following extensions: .js, .cjs, .mjs, .json
   Pass --verbose to see the stacktrace.

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

 >  NX   Ran target build for project web and 1 task(s) they depend on (5s)

    ✖    1/2 failed
    ✔    1/2 succeeded [0 read from cache]

Operating System

  • macOS
  • Linux
  • Windows
  • Other (Please specify)

Additional Information

No response

@github-actions
Copy link

This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 31, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated scope: nextjs Issues related to NextJS support for Nx type: bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants