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
}else{// ESM format so it can't be resolved by commonjs `require` in eslint// eslint-disable-next-line import/no-unresolvedvarmonaco=require('monaco-editor');this.monaco=monaco;this.$nextTick(function(){_this.initMonaco(monaco);});}
I don't understand why the es-module build has require in it, but if I remove that and add
import*asmonacofrom'monaco-editor';
I get up to the point where this issue vitejs/vite#1791 is relevant
The text was updated successfully, but these errors were encountered:
Using Vite to build a vue project, with es module import like
Error is from this block in the source
I don't understand why the es-module build has
require
in it, but if I remove that and addI get up to the point where this issue vitejs/vite#1791 is relevant
The text was updated successfully, but these errors were encountered: