Open TERIHAX opened 1 year ago
create tsconfig.json
and put that
{
"compilerOptions": {
"module": "commonjs"
}
}
@MoleSchizo it works now but when I run it on a linux replit instance, and then run the server, the page just returns "Upgrade Required"
@TERIHAX Default editor port is open at localhost:3000
. Are you visiting the LSP port instead of the editor client port? because that's what shows if you do so
/server
and /client
, they should be ran separately@MoleSchizo Yes I am running them separately, the client first, then the server, but I change the vite.config.js
file to:
import { defineConfig } from 'vite'
export default defineConfig({
resolve: {
alias: {
vscode: '@codingame/monaco-languageclient/lib/vscode-compatibility',
},
},
server: {
host: '0.0.0.0',
}
})
so it would run in the replit url, https://monaco-lsp.terihax.repl.co
, but when I go to https://monaco-lsp.terihax.repl.co:3000
, it's just stuck loading forever.
export default defineConfig({
server: {
host: '0.0.0.0',
port: '8080'
},
resolve: {
alias: {
vscode: '@codingame/monaco-languageclient/lib/vscode-compatibility',
},
},
})
Monaco will start like that, but for some reason, it will fail connecting to the language server protocol, its 100% problem with the configuration, So you got to find a way to do that in repl.it :)
Also, it will surely run fine using services like railway.app
but it has some free usage limit