angular-architects / nx-ddd-plugin

Nx plugin for structuring a monorepo with domains and layers
308 stars 55 forks source link

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

Open mawebdev opened 1 year ago

mawebdev commented 1 year ago
Bildschirm­foto 2023-04-11 um 12 04 48

ast-utils was moved from @nrwl/workspace to @nrwl/js (Reference: https://github.com/nrwl/nx/pull/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 commented 1 year ago

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

"@nrwl/workspace": "^15.9.2"

ido-lempert commented 1 year ago

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

innoveltec commented 1 year ago

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 commented 1 year ago

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

elite-benni commented 1 year ago

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 commented 1 year ago

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

michael-zerna commented 12 months ago

Any updates on this?