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

Unable to build newly generated app #3

Open
zscott opened this issue Feb 10, 2023 · 2 comments
Open

Unable to build newly generated app #3

zscott opened this issue Feb 10, 2023 · 2 comments

Comments

@zscott
Copy link

zscott commented Feb 10, 2023

Current Behavior

Running nx g nx-loopback:app in a freshly created nx workspace (version 15.6.0) successfully generates an app,
however when I run nx build restapp I get the following error:

╰─➤  nx build restapp

 >  NX   Ran target build for project restapp (5ms)
 
    ✖    0/0 failed
    ✔    0/0 succeeded [0 read from cache]
 
 >  NX   Unable to resolve nx-loopback/nx-lbv4:build.

   unable to find tsconfig.base.json or tsconfig.json
   Pass --verbose to see the stacktrace.

Steps to Reproduce

npx [email protected]
cd test-nx-workspace
npm i -D nx-loopback
npm i -D @nrwl/devkit
nx g nx-loopback:app             (I name the app 'restapp' and the class RestApp)
nx build restapp

Failure Logs

NX   Unable to resolve nx-loopback/nx-lbv4:build.
unable to find tsconfig.base.json or tsconfig.json

Environment

╰─➤  nx --version
15.6.0
╰─➤  nx report

 >  NX   Report complete - copy this into the issue template

   Node : 19.4.0
   OS   : darwin arm64
   npm  : 9.4.2
   
   nx : 15.6.0
   @nrwl/angular : Not Found
   @nrwl/cypress : Not Found
   @nrwl/detox : Not Found
   @nrwl/devkit : 15.6.3
   @nrwl/esbuild : Not Found
   @nrwl/eslint-plugin-nx : Not Found
   @nrwl/expo : Not Found
   @nrwl/express : Not Found
   @nrwl/jest : Not Found
   @nrwl/js : Not Found
   @nrwl/linter : Not Found
   @nrwl/nest : Not Found
   @nrwl/next : Not Found
   @nrwl/node : Not Found
   @nrwl/nx-cloud : 15.0.3
   @nrwl/nx-plugin : Not Found
   @nrwl/react : Not Found
   @nrwl/react-native : Not Found
   @nrwl/rollup : Not Found
   @nrwl/schematics : Not Found
   @nrwl/storybook : Not Found
   @nrwl/web : Not Found
   @nrwl/webpack : Not Found
   @nrwl/workspace : Not Found
   @nrwl/vite : Not Found
   typescript : 4.9.5
   ---------------------------------------
   Local workspace plugins:
   ---------------------------------------
   Community plugins:
         nx-loopback: 0.0.5
@quicksilverr
Copy link
Owner

Hey @zscott

Sorry, I missed this part, while editing the targets in the generators.

But please could you do this in your project.json of your restapp, in the build target..instead of

build: {
        executor: `nx-loopback/nx-lbv4:build`,
      },

do this

build: {
        executor: `nx-loopbackbuild`,
      },

@quicksilverr
Copy link
Owner

I've updated the package as well with the fix, you can install the latest version.

Thanks for reporting the issue.

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