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

React SSR not working with nx-16 #17706

Closed
1 of 4 tasks
denchiklut opened this issue Jun 21, 2023 · 1 comment
Closed
1 of 4 tasks

React SSR not working with nx-16 #17706

denchiklut opened this issue Jun 21, 2023 · 1 comment
Assignees
Labels
outdated scope: react Issues related to React support for Nx type: bug

Comments

@denchiklut
Copy link

Current Behavior

ERROR in ./tmp/apps/my-ssr/tsconfig.generated.json
TS5083: Cannot read file '/Users/daleksandrov/artist-monorepo/tmp/apps/my-ssr/tsconfig.generated.json'.

Found 1 error in 30 ms.

 >  NX   Cannot read properties of undefined (reading 'target')

   Pass --verbose to see the stacktrace.


 

 >  NX   Running target serve for project my-ssr failed

   Failed tasks:
...

Expected Behavior

Expected to serve the app in SSR mde.

GitHub Repo

No response

Steps to Reproduce

  1. nx g @nx/react:app my-new-app --bundler=webpack
  2. nx g setup-ssr my-new-app
  3. nx serve my-new-app

Nx Report

>  NX   Report complete - copy this into the issue template

   Node   : 18.14.0
   OS     : darwin arm64
   yarn   : 1.22.19
   Hasher : Native
   
   nx                 : 16.3.2
   @nx/js             : 16.3.2
   @nx/jest           : 16.3.2
   @nx/linter         : 16.3.2
   @nx/workspace      : 16.3.2
   @nx/cypress        : 16.3.2
   @nx/devkit         : 16.3.2
   @nx/esbuild        : 16.3.2
   @nx/eslint-plugin  : 16.3.2
   @nx/nest           : 16.3.2
   @nx/node           : 16.3.2
   @nx/plugin         : 16.3.2
   @nx/react          : 16.3.2
   @nx/rollup         : 16.3.2
   @nx/storybook      : 16.3.2
   @nrwl/tao          : 16.3.2
   @nx/vite           : 16.3.2
   @nx/web            : 16.3.2
   @nx/webpack        : 16.3.2
   typescript         : 5.0.4
   ---------------------------------------
   Community plugins:
   @compodoc/compodoc : 1.1.19
   ---------------------------------------
   Local workspace plugins:
         @artists/regional-preferences
         @artists/chakra-ui-theme
         @artists/storage-service
         @artists/design-schemas
         @artists/design-events
         @artists/api-client
         @artists/newrelic
         @artists/nx-local
         @artists/devkit
         @artists/footer
         @artists/header
         @artists/my-lib
         @artists/sf-fp
         @artists/uikit
         @artists/ssr

Failure Logs

ERROR in ./tmp/apps/my-ssr/tsconfig.generated.json
TS5083: Cannot read file '/Users/daleksandrov/artist-monorepo/tmp/apps/my-ssr/tsconfig.generated.json'.

Found 1 error in 30 ms.

 >  NX   Cannot read properties of undefined (reading 'target')

   Pass --verbose to see the stacktrace.


 

 >  NX   Running target serve for project my-ssr failed

   Failed tasks:
   
   - my-ssr:serve:development
   
   Hint: run the command with --verbose for more details.


Process finished with exit code 1

Operating System

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

Additional Information

It was working with nx 15

@Coly010 Coly010 self-assigned this Jun 21, 2023
@Coly010 Coly010 added the scope: react Issues related to React support for Nx label Jun 21, 2023
@Coly010 Coly010 closed this as completed Jun 22, 2023
@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 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated scope: react Issues related to React support for Nx type: bug
Projects
None yet
Development

No branches or pull requests

2 participants