Closed 4javier closed 1 year ago
I just created a workspace and it created with tsconfig.base.json. Can you provide the commands and choices from prompts that got you to tsconfig.json
?
[javier@ThinkArch test]$ npx create-nx-workspace test
npx: installato 67 in 34.606s
> NX Let's create a new workspace [https://nx.dev/getting-started/intro]
✔ Choose what to create · angular
✔ Default stylesheet format · scss
✔ Enable distributed caching to make your CI faster · No
> NX Nx is creating your v15.5.1 workspace.
To make sure the command works reliably in all environments, and that the preset is applied correctly,
Nx will run "npm install" several times. Please wait.
✔ Installing dependencies with npm
✔ Nx has successfully created the workspace: test.
[javier@ThinkArch test]$ ls -a | grep tsconfig
tsconfig.app.json
tsconfig.editor.json
tsconfig.json
tsconfig.spec.json
Ah! This is for the standalone angular selection right? Its possible thats not fully supported by the generated MF setup.
Ah! This is for the standalone angular selection right? Its possible thats not fully supported by the generated MF setup.
I used that because it's the one suggested in docs for Module Federation MicroFrontEnds setup. https://nx.dev/recipes/module-federation/dynamic-module-federation-with-angular#create-an-nx-workspace But I noticed it creates a src/app default application, configuring Jest for it. Since the purpose is to later create shell and remotes, that default project looks useless. Presets are a bit confusing: which one would best fit for a monorepo already setup to host an Angular Microfrontend architecture with Module Federation, with Jest, ESLint and Cypress, but without default app?
The docs need updated.
Thanks for bringing this to my attention.
The one you want is integrated -> angular
I'll update the docs to highlight this now that our prompts have changed, but likewise, the MF helpers should handle tsconfig.json at root
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.
Current Behavior
On creation from scratch of a new workspace, the system generates
tsconfig.json
but on serve Angular builder looks fortsconfig.base.json
on app generation there's the same problem:
No global
ng-cli
installedExpected Behavior
I'd expect
nx
generators to createtsconfig.base.json
instead oftsconfig.json
Github Repo
No response
Steps to Reproduce
1.Just create an Angular workspace from scratch
Nx Report
Failure Logs
No response
Additional Information
Renaming the files and fix extendings in their child makes everything work as expected.