I can view the typings holding ctrl + click on the #build/components import however nuxt continues to show this error message:
[plugin:vite:import-analysis] Failed to resolve import "#build/components" from "pages/diff.vue". Does the file exist?
/Users/andy/development/kinnu/core2-mirror/trinity-web/pages/diff.vue:6:33
1 | import { ref, computed } from 'vue';
2 | import { defineComponent as _defineComponent } from "vue";
3 | import { MonacoDiffEditor } from "#build/components";
The example in the document seems to be outdated and I have updated it a while ago.
Please try to import from #components instead of #build/components.
Hi there,
I'm trying to apply typing to my MonacoDiffEditor
ref
. To import the typing I'm using:I can view the typings holding ctrl + click on the #build/components import however nuxt continues to show this error message:
nuxt.config.ts
Does anyone know why this is happening?
I'm trying to access the number of changes in the diff (see here: https://stackoverflow.com/a/61466242/276220 using:
editorRef.value.$editor.getLineChanges()