FranckFreiburger / vue3-sfc-loader

Single File Component loader for Vue2 and Vue3. Load .vue files directly from your HTML. No node.js environment, no build step.
MIT License
1.03k stars 116 forks source link

using await in setup causing e not a function #160

Closed roger-castaldo closed 5 months ago

roger-castaldo commented 1 year ago

Describe the bug

When using an await call inside a setup script I keep getting "TypeError: e is not a function" under withAsyncContext

To Reproduce

create an async function, for example HasValidAccess that is in an imported js file.

add code similar to: let canAccess = await HasValidAccess('EditObjectMetaFlagConfiguration');

inside the Githubissues.

  • Githubissues is a development platform for aggregating issues.