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
Unable to infer path to ace from script src,", "use ace.config.set('basePath', 'path') to enable dynamic loading of modes and themes", "or with webpack use ace/webpack-resolver
Context
VIte
React
Typescript
Sample code to reproduce your issue
importAceEditorfrom"react-ace";import"./App.css";// Method 1:// import "ace-builds/src-noconflict/mode-java";// import "ace-builds/src-noconflict/theme-github";// import "ace-builds/src-noconflict/ext-language_tools";// Method 2:// xxxx how to dynamic import mode or themefunctionApp(){return(<><AceEditormode="java"theme="github"name="UNIQUE_ID_OF_DIV"editorProps={{$blockScrolling: true}}/></>);}exportdefaultApp;
Problem
How to dynamically import modes and themes ?
Unable to infer path to ace from script src,", "use ace.config.set('basePath', 'path') to enable dynamic loading of modes and themes", "or with webpack use ace/webpack-resolver
Context
Sample code to reproduce your issue
References
Progress on: #
codesandbox
The text was updated successfully, but these errors were encountered: