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

ddd generate doesnt work anymore on the latest @nrwl/workspace versions. #123

Closed
mawebdev opened this issue Apr 11, 2023 · 7 comments
Closed

Comments

@mawebdev
Copy link

Bildschirm­foto 2023-04-11 um 12 04 48

ast-utils was moved from @nrwl/workspace to @nrwl/js (Reference: nrwl/nx#15540)

Solution:
node_modules/@angular-architects/ddd/src/generators/utils/addToNgModule.js:5
const ast_utils_1 = require("@nrwl/js/src/utils/typescript/ast-utils");

@orlandoji
Copy link

hi there i have same error
Cannot find module @nrwl/workspace/src/utilities/ast-utils

"@nrwl/workspace": "^15.9.2"

@ido-lempert
Copy link

Changing import { insertImport } from @nrwl/workspace/src/utilities/ast-utils to import { insertImport } from @nrwl/js works for me.

@innoveltec
Copy link

innoveltec commented May 4, 2023

I am having the same issue "@nx/workspace": "16.0.1", where did you change this import? I was trying to generate a new domain. I had to change ast-utils path inside the node_modules/@angular-architects/ddd/src/generators/domain/index.js file but now I am having another error => Cannot read properties of undefined (reading 'rules')

@manfredsteyer
Copy link
Contributor

+1 we are going to publish a update for Nx16/Angular 16 soon.

@elite-benni
Copy link

in node_modules index.ts you can change ast utils import to const ast_utils_1 = require("@nx/workspace/src/utils/ast-utils");

As there are some other problems with nx changing some paths, to be sure maybe it is better to wait for manfreds update. ;)

e.g. update-dep-const.js
references on @nrwl/nx/enforce-module-boundaries switched to @nx/enforce-module-boundaries.

at least for me I was able to generate my domain.

@jatleti
Copy link

jatleti commented May 18, 2023

Any update about the new version with angular 16? thanks!

@michael-zerna
Copy link

Any updates on this?

@L-X-T L-X-T closed this as completed Dec 2, 2024
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

9 participants