How to exposes and import a .ts file ? #2770
Unanswered
NicoJolyAdeo
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Is it a bad question ? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
In Vue 3 i create a test.ts file (a composables)
export const getTest = () => { return "123"; };
and want to exposes this file :
name: "my_microfront", filename: "remoteEntry.js", exposes: { "./test": "./src/composables/test.ts", },
And now want to import in host :
import { getTest } from "my_microfront/test";
But i have this error :
TS2614: Module '".vue"' has no exported member 'getTest'. Did you mean to use 'import getTest from ".vue"' instead?
Beta Was this translation helpful? Give feedback.
All reactions