rrjanbiah / react2solid

ReactJS to SolidJS Converter aka Transpiler
https://rrjanbiah.github.io/react2solid/
MIT License
49 stars 0 forks source link

Error: Unexpected usage when setting up monaco editor in SolidJS #5

Closed rrjanbiah closed 2 years ago

rrjanbiah commented 2 years ago
Uncaught (in promise) Error: Unexpected usage
    at EditorSimpleWorker.loadForeignModule (editorSimpleWorker.js:460:31)
    at webWorker.js:38:30
loadForeignModule @ editorSimpleWorker.js:460
(anonymous) @ webWorker.js:38
await in (anonymous) (async)
maybeValidate @ tsMode.js:296
onModelAdd @ tsMode.js:321
(anonymous) @ tsMode.js:352
DiagnosticsAdapter @ tsMode.js:352
setupMode @ tsMode.js:1093
setupTypeScript @ tsMode.js:1054
(anonymous) @ monaco.contribution.js:242
Promise.then (async)
(anonymous) @ monaco.contribution.js:242
(anonymous) @ standaloneLanguages.js:56
invoke @ event.js:407
fire @ event.js:551
_createAndGetLanguageIdentifier @ languageService.js:62
(anonymous) @ languageService.js:43
LanguageSelection @ languageService.js:74
createById @ languageService.js:42
createTextModel @ standaloneCodeEditor.js:316
StandaloneEditor2 @ standaloneCodeEditor.js:189
_createInstance @ instantiationService.js:92
createInstance @ instantiationService.js:63
create @ standaloneEditor.js:34
(anonymous) @ ReactCodeEditor.tsx:12
untrack @ dev.js:435
(anonymous) @ dev.js:460
runComputation @ dev.js:705
updateComputation @ dev.js:690
runTop @ dev.js:780
runUserEffects @ dev.js:880
(anonymous) @ dev.js:840
batch @ dev.js:415
completeUpdates @ dev.js:839
runUpdates @ dev.js:800
createRoot @ dev.js:169
render @ dev.js:96
(anonymous) @ index.tsx:9
errors.js:12 Uncaught Error: Unexpected usage

Error: Unexpected usage
    at EditorSimpleWorker.loadForeignModule (editorSimpleWorker.js:460:31)
    at webWorker.js:38:30
    at errors.js:12:27
(anonymous) @ errors.js:12
setTimeout (async)
ErrorHandler.unexpectedErrorHandler @ errors.js:10
onUnexpectedExternalError @ errors.js:29
onUnexpectedExternalError @ errors.js:43
(anonymous) @ codeAction.js:122
rejected @ codeAction.js:9
Promise.then (async)
step @ codeAction.js:10
(anonymous) @ codeAction.js:11
__awaiter3 @ codeAction.js:7
(anonymous) @ codeAction.js:101
getCodeActions @ codeAction.js:101
(anonymous) @ codeActionModel.js:202
createCancelablePromise @ async.js:31
(anonymous) @ codeActionModel.js:202
_createEventAndSignalChange @ codeActionModel.js:119
trigger @ codeActionModel.js:40
_update @ codeActionModel.js:208
(anonymous) @ codeActionModel.js:168
invoke @ event.js:407
fire @ event.js:551
register @ languageFeatureRegistry.js:37
registerCodeActionProvider @ standaloneLanguages.js:375
setupMode @ tsMode.js:1090
setupTypeScript @ tsMode.js:1054
(anonymous) @ monaco.contribution.js:242
Promise.then (async)
(anonymous) @ monaco.contribution.js:242
(anonymous) @ standaloneLanguages.js:56
invoke @ event.js:407
fire @ event.js:551
_createAndGetLanguageIdentifier @ languageService.js:62
(anonymous) @ languageService.js:43
LanguageSelection @ languageService.js:74
createById @ languageService.js:42
createTextModel @ standaloneCodeEditor.js:316
StandaloneEditor2 @ standaloneCodeEditor.js:189
_createInstance @ instantiationService.js:92
createInstance @ instantiationService.js:63
create @ standaloneEditor.js:34
(anonymous) @ ReactCodeEditor.tsx:12
untrack @ dev.js:435
(anonymous) @ dev.js:460
runComputation @ dev.js:705
updateComputation @ dev.js:690
runTop @ dev.js:780
runUserEffects @ dev.js:880
(anonymous) @ dev.js:840
batch @ dev.js:415
completeUpdates @ dev.js:839
runUpdates @ dev.js:800
createRoot @ dev.js:169
render @ dev.js:96
(anonymous) @ index.tsx:9
errors.js:12 Uncaught Error: Unexpected usage

Error: Unexpected usage
    at EditorSimpleWorker.loadForeignModule (editorSimpleWorker.js:460:31)
    at webWorker.js:38:30
    at errors.js:12:27