You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because I have async functions, I can't bundle to cjs. But if I bundle to esm, it gives this error:
Evaluation Error: SyntaxError: Cannot use import statement outside a module
at new Function (<anonymous>)
at DataviewInlineApi.view (plugin:dataview:18839:20)
at async DataviewInlineApi.eval (plugin:modules:30532:640)
at async DataviewJSRenderer.render (plugin:dataview:18922:13)
Why is esm not possible? How to use async functions? Is promise the only way?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Because I have async functions, I can't bundle to cjs. But if I bundle to esm, it gives this error:
Why is esm not possible? How to use async functions? Is promise the only way?
Beta Was this translation helpful? Give feedback.
All reactions