Using NX devkit for adding import to angular module #4934
Di-did-done
started this conversation in
Show and Tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi NX Team!
At the moment, I am writing a generator using only the NX devkit and I cannot use the code below to insert into the Angular module due to
host
type mismatch.Can you tell me how I can do this now?
I found
applyChangesToString
devkit function you are using in React generators, but I cannot use it withinsertImport
andaddImportToModule
due to type mismatch too. Maybe you are planning to add helper functions asaddImport
for React at Angular package or I need to write it myself?Beta Was this translation helpful? Give feedback.
All reactions