tabixio / tabix

Tabix.io UI

Home Page:https://tabix.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sql-editor does not work without internet on the client

Heyzi opened this issue · comments

commented

Version: Tabix ©2022 Version: 22.05.25


Problem:
If a user connects from a local network and does not have internet access on his machine, the sql editor will not load(Hangs on loading).
If you turn on the Internet to the user - everything starts working.

1

2

Is there any way to solve the problem? is necessary to work in a private network

commented

Fixed by adding this

import loader from '@monaco-editor/loader';
import * as monaco from 'monaco-editor';

loader.config({ monaco });
loader.init().then(monacoInstance => { /* ... */ });
И добавил в front/package.json

 "dependencies": {
 "@monaco-editor/loader": "^1.3.2",

to front/app/src/index.tsx

and

 "dependencies": {
 "@monaco-editor/loader": "^1.3.2",

to front/package.json