Open mawebdev opened 1 year ago
hi there i have same error
Cannot find module @nrwl/workspace/src/utilities/ast-utils
"@nrwl/workspace": "^15.9.2"
Changing import { insertImport } from @nrwl/workspace/src/utilities/ast-utils
to import { insertImport } from @nrwl/js
works for me.
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')
+1 we are going to publish a update for Nx16/Angular 16 soon.
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.
Any update about the new version with angular 16? thanks!
Any updates on this?
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");