-
-
Notifications
You must be signed in to change notification settings - Fork 244
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
Nx 16.9.x errors with Cannot read properties of undefined (reading 'executor') #667
Comments
Facing the same issue on windows 10. I downgraded the following package and the following dev dependencies You could try this workaround for now. |
Thanks @pratheeshrussell - this indeed helped, will try a similar workaround with the nx workspace starter (which also failed for me) |
Interesting. Something must have changed with Nx 16.9. Will take a look and check with the Nx team |
I just tried this with node 18.17.1 and the latest version of Nx (16.9.0) npm create analog@latest analog-nx-169
cd analog-nx-169
npm i
npx ng serve And I'm not seeing the issue. I'm on OSX 12.8.x though |
@brandonroberts Thanks for looking into it! Let me ask this silly question: is Nx installed globally required for this to run? I am on nvm, node 18.18 installed yesterday, I don't have Nx or any other packages installed globally there.
Tried with Node 18.18 and 18.17.1 - no difference |
@moniuch no, Nx is not globally required for this to run. Can you paste the complete error log? |
@brandonroberts HTH
|
@AgentEnder any ideas here? |
Nothing jumps out at me as a 16.9 change that could have affected this. Have you been able to repro at all? |
I haven't been able to, but I'm on an older version of OSX |
I checked this on a Ubuntu machine with node 18.17.1. The same issue occurs Error occurs in the following file since targetConfiguration is undefined. I console logged projectConfiguration and saw that the following targets were available build, serve, test running the following command runs the app but the following fails with a different error message |
Can you link a reproduction link for this? |
I just created a new project with and then installed dependencies and ran Node Version: v18.17.1 https://github.com/pratheeshrussell/analog-bug-test |
The same problem on Windows 11 Pro My error log: [error] TypeError: Cannot read properties of undefined (reading 'executor') |
To play it, we just have to enter its demo in stackblitz |
Can someone try with the latest release? |
The issue exists in the latest release too @brandonroberts For now I am running it with |
Am also having thesame issue just now this is my deps "dependencies": {
"@analogjs/content": "^0.2.0",
"@analogjs/router": "^0.2.0",
"@angular/animations": "^16.2.0",
"@angular/common": "^16.2.0",
"@angular/compiler": "^16.2.0",
"@angular/core": "^16.2.0",
"@angular/forms": "^16.2.0",
"@angular/platform-browser": "^16.2.0",
"@angular/platform-browser-dynamic": "^16.2.0",
"@angular/platform-server": "^16.2.0",
"@angular/router": "^16.2.0",
"@nx/angular": "^16.7.0",
"front-matter": "^4.0.2",
"marked": "^5.0.2",
"marked-gfm-heading-id": "^3.1.0",
"marked-highlight": "^2.0.1",
"mermaid": "^10.2.4",
"prismjs": "^1.29.0",
"rxjs": "~7.5.6",
"tslib": "^2.4.0",
"zone.js": "~0.13.0"
},
"devDependencies": {
"@analogjs/platform": "^0.2.0",
"@angular-devkit/build-angular": "^16.2.0",
"@angular/cli": "^16.2.0",
"@angular/compiler-cli": "^16.2.0",
"@nx/vite": "^16.7.0",
"nx": "^16.7.0",
"jsdom": "^22.1.0",
"typescript": "~5.0.2",
"vite": "^4.4.8",
"vitest": "^0.32.0",
"tailwindcss": "^3.3.1",
"postcss": "^8.4.21",
"autoprefixer": "^10.4.14"
} I generated the app with |
when I run it with i get an error
|
@SOG-web that's a separate issue. You must be on Node >= 18.13.0 |
oh, yes I forgot to change my node version. since am using nvm. Thanks it working now but not the normal I guess the |
@AgentEnder I'm able to reproduce this on a new project also, here's a screenshot of what's being logged and where the error occurs Pinning all the nx packages ( |
This looks to have been resolved with the latest release of Nx. Please verify and re-open if that's not the case |
Please provide the environment you discovered this bug in.
Trying to follow the Get Started instructions
Which area/package is the issue in?
create-analog
Description
as above
Please provide the exception or error you saw
No response
Other information
macOS 13.3
I would be willing to submit a PR to fix this issue
The text was updated successfully, but these errors were encountered: