how to import class/functions defined in emitter-framework #3596
-
I referenced document https://typespec.io/docs/extending-typespec/emitter-framework and try to create a demo emitter. "@typespec/compiler": "0.55.0" Way 1: Way 2: Error for way 2: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Very sorry I missed this discussion post! I think you need to just import Also it's ridiculous that we don't document this import! We'll fix that. |
Beta Was this translation helpful? Give feedback.
-
Thanks @bterlson, I tested and it does not work in my environment. |
Beta Was this translation helpful? Give feedback.
Assuming this error is from TypeScript, is your package configured for
node16
module resolution? https://typespec.io/docs/next/extending-typespec/basics#d-install-and-initialize-typescript