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

Starter project with React does not work #210

Closed
andirsun opened this issue Mar 31, 2023 · 1 comment
Closed

Starter project with React does not work #210

andirsun opened this issue Mar 31, 2023 · 1 comment

Comments

@andirsun
Copy link
Contributor

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. npx create-nx-workspace@14 (created a single react app 'react-test')
  2. npm install -D nx-electron
  3. nx g nx-electron:app electron-test --frontendProject=react-test
  4. nx serve electron-test

Electron throwed this error

❯ nx serve electron-test

> nx run electron-test:serve

asset main.js 17.3 KiB [compared for emit] (name: main) 1 related asset
asset main.preload.js 3.8 KiB [compared for emit] (name: main.preload) 1 related asset
asset assets/gitkeep_tmpl_ 13 bytes [compared for emit] [from: apps/electron-test/src/assets/gitkeep_tmpl_] [copied]
runtime modules 1.83 KiB 8 modules
built modules 8.4 KiB [built]
  cacheable modules 8.23 KiB
    modules by path ./apps/electron-test/src/app/ 7.28 KiB
      modules by path ./apps/electron-test/src/app/events/*.ts 2.56 KiB 2 modules
      modules by path ./apps/electron-test/src/app/*.ts 4.52 KiB 2 modules
      ./apps/electron-test/src/app/api/main.preload.ts 201 bytes [built] [code generated]
    ./apps/electron-test/src/main.ts 891 bytes [built] [code generated]
    ./apps/electron-test/src/environments/environment.ts 87 bytes [built] [code generated]
  external "electron" 42 bytes [built] [code generated]
  external "child_process" 42 bytes [built] [code generated]
  external "path" 42 bytes [built] [code generated]
  external "url" 42 bytes [built] [code generated]
webpack 5.75.0 compiled successfully in 202 ms
Type-checking in progress...
Debugger listening on ws://127.0.0.1:5858/e4a9ec0a-2f8f-48a4-be1d-6a8314cc1174
For help, see: https://nodejs.org/en/docs/inspector

(node:49044) electron: Failed to load URL: http://localhost:4200/ with error: ERR_CONNECTION_REFUSED
(Use `Electron --trace-warnings ...` to show where the warning was created)

No errors found.

Screenshot 2023-03-31 at 11 59 30 AM

Expected behavior
A clear and concise description of what you expected to happen.
Work out of the box
Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS] MacOS ventura
  • Nx Electron Version [e.g. 8.0.0]

Additional context
Add any other context about the problem here.

@andirsun andirsun changed the title Starter project does not work Starter project with React does not work Mar 31, 2023
@bennymeg
Copy link
Owner

bennymeg commented Apr 1, 2023

Please read this comment: #18 (comment)

@bennymeg bennymeg closed this as completed Apr 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants