Closed khanh-nguyen closed 5 years ago
I solved this by requiring the worker.
Faced similar issue, for quick fix to avoid displaying that warning added a try catch block and closed it.
Faced similar issue on a rollup/vue/brace/vue2-ace-editor combo site. Probably doesn't affect many people but in case someone also goes trough the same: Tried to replace brace to ace because brace is now over two years old and needed some updates for async/await. The error was due to the mixed use of the two packages which rollup could not handle too well. Once I eliminated all references to brace the issue gone away. Also used this for the editor:
import * as ace from 'ace-builds'; // for rollup to work
ace.config.set('basePath', '/js/vendor/ace'); // for the mods/themes ...etc to load from the public directory of the webserver
I'm using
brace@0.11.1
withwebpack@3.6.x
. (The problem occured in both Firefox and Chrome on Mac OS X Sierra.)This is how I set it up
While theme is loaded correctly, I got the following error when setting mode
Apperantly,
name
here isundefined
.As the result, syntax check is not working in the editor.