Comments (3)
This seems like it may be a caching issue or a stale Nx Graph
, such that your removal of
{
"env": "NX_MF_DEV_SERVER_STATIC_REMOTES"
}
is invalidating the stale graph and allowing for a rebuild, as {env: string}
is a valid input.
The other thing to check is whether "production" is in your namedInputs
in the nx.json
.
from nx.
Thank you for your response.
After reporting the issue, I continued testing and investigating. It seems that the error is caused because there is no configuration for "namedInputs". Shouldn't this be added automatically during the migration? If I remove these two lines, everything works perfectly:
And if we don't want to remove those two lines, we need to configure the namedInputs. I took these from a new project generated with nx@19. Shouldn't this be added automatically during the migration?:
Once I fixed that, I encountered a problem related to routing. The static servers for the applications that I haven't specified in "devRemotes" are not loading correctly. I've been reviewing the configuration of all the nx files, but I can't find the issue. I've seen related posts, but I can't seem to solve it... With a freshly generated project, routing works correctly, but after migrating the old project, it doesn't.
When I try to access any application, the same one always loads, regardless of which one I try to access. However, if I access an application specified in --devRemotes, that one works correctly...
Any ideas?
Thanks
from nx.
There is an issue with the migration but it is not that it needs to add those namedInputs, rather it should only add them if they exist.
Can you open a new issue for the remotes issue, with the version of Nx, and as much information as possible, including errors in the terminal and browser
from nx.
Related Issues (20)
- affected is broken due to incorrect gitignore handling
- Affected: The table of options is not formatted properly HOT 2
- Warning about outdated JSX transform being used for Next.js apps with React 19
- Nx generates invalid names for remote projects with multi-word names
- Cannot resolve @nx/react-native/plugins/metro-resolver.js | React Native 0.75.3
- Using negative operator `!{workspaceRoot}/` doesn't work in inputs array
- Migrate NX 16 to NX 17 - TypeError: Cannot read properties of undefined (reading 'assets')
- nx release doesn't push with "latest" tag anymore HOT 1
- Jest watch does not respond to key presses on Windows
- Increase Bundle Size for Module Federation 19.7.2 HOT 1
- Nx pseudo terminal panics on SIGKILL
- Issues with `nx serve` auto-reloading for a nodejs server HOT 2
- When generating cypress component tests in nx 19.7.3 - nx library imports are not resolved
- Cannot read properties of null (reading 'changedProjects')
- Breaking change: Custom runners are no longer able to modify task graph HOT 1
- ReferenceError: SHA-1 for file *.png is not computed.
- Start executor not displaying QR Code HOT 1
- NX upgrade from 18.0.3 to 18.0.4 breaks all microfrontend static remotes HOT 3
- Nx does not recomputes project graph afer changes in node_modules
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nx.