question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Nx option to have separate `project.json` files not supported

See original GitHub issue

🐞 Bug report

Tried on ubuntu, windows, and mac os with node 14.17.0, using the latest nx create workspace. No matter what extra cli or config changes i make i constantly face a problem where it can’t find angular.json (this is a apps/core nrwl nx monorepo, i dont even think its possible to use the angular.json variant anymore but idk, all the new nrwl workspaces have a workspace.json and each project has its own project.json).

root@docker-ubuntu-s-4vcpu-8gb-nyc3-01:~/workspace# npx scully --project x ✔ Folder “./scully” used for custom plugins scully: using project config from “apps/x” x Could not find project “x” in ‘angular.json’. ⚠ Deprication Notice: ====================================================================== From now on, the plugin that is being used to render a route is able to be changed by the user. You can do this by adding or enabling the plugin in the scully.json file. For your convenience, we loaded the Puppeteer plugin for you.

     To disable this warning enable the plugin of your choiche.
     for Puppteer please add:
         import '@scullyio/scully-plugin-puppeteer';
      to your scully.docs-app-ng.config.ts file.

      When you get this waring while not using scully-plugin-puppeteer
      you need to set the defaultRouteRenderer to the name of your plugin.
      The defaultRouteRenderer is now set to 'routeRenderer'.
   ======================================================================

x Angular distribution files not found, run “ng build” first

Description

🔬 Minimal Reproduction

💻Your Environment

Angular Version:





Scully Version:





🔥 Exception or Error




Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:2
  • Comments:11 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
stianmorsundcommented, Mar 18, 2022

Until this is officially fixed/supported, you can get it to work by adding target: 'targets' inside the Scully-config as mentioned here: https://github.com/scullyio/scully/issues/1429

0reactions
BenLunecommented, Aug 31, 2022

Hi, I add everything manually and it works. I think we are more and more people splitting their projects configs. Thank you

Read more comments on GitHub >

github_iconTop Results From Across the Web

Project Configuration - Nx
json files are located in each project's folder. Nx merges the two files to get each project's configuration. The following configuration creates build...
Read more >
Pnpm and Nx monorepo. Part 2 - Javier Brea
Let's create our first project in the packages folder. We will name it sum-one . It will contain its own package.json file, and...
Read more >
Configuration | Lerna
Note, the namedInputs and targetDefaults defined in nx.json are simply defaults. If you take that configuration and copy it into every project's package.json...
Read more >
How to run a single typescript file with Nx - Stack Overflow
I've came across to a similar use case as yours: I've a NX app that needs some sort of scripts to run (not...
Read more >
project.json File Reference for NuGet - Microsoft Learn
The file cannot contain dependencies, compilation options, etc. that you see in DNX project.json files. Given that there can only be a single ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found