You're one of the few people on KZbin that know how to make tutorials! By the way - which sort of deployment would recommend for this project since it requires converting and running files locally?
@SuboptimalEng Жыл бұрын
Thanks! To be honest, I don't know enough about deploying projects, but my default setup is usually Next.js and Vercel.
@Coder_DhruvArora Жыл бұрын
Will it work after deployment?? And what about code mirror? Seen a lot of old tuts using code mirror but now nothing works
@daaamn6414 Жыл бұрын
I just knew basic Js and decided to learn MERN stack by building projects from start and after this tutorial I realised that I think I should rather stick towards the tutorial / course approach. Like first learn everything from scratch and then build projects by applying the knowledge :_(
@Lightpaladinsoldier3 жыл бұрын
Your intro made me laugh so hard bro - instant sub
@abhishekv8646 Жыл бұрын
some one help me, client is not running---error: code: 'ERR_PACKAGE_PATH_NOT_EXPORTED'
@twenty9str4983 жыл бұрын
what if you pass in an array as a an argument like this: [[1, 2, 3], [1, 2], 3], will it work?
@DanielRodrigues-bx6lr2 жыл бұрын
The import 'codemirror/keymap/sublime'; and import 'codemirror/theme/dracula.css'; are giving me errors. Did you need to download and install any other dependencies for those to work?
@SuboptimalEng2 жыл бұрын
You can check the package.json file on GitHub to see the dependencies.
@DanielRodrigues-bx6lr2 жыл бұрын
@@SuboptimalEng Thanks. Evidently, I needed to do an 'npm i codemirror --save' separately from the initial @uiw/react-codemirror installation
@SuboptimalEng2 жыл бұрын
@@DanielRodrigues-bx6lr Glad to see you got it cleared up!
@jeremiedsouza67032 жыл бұрын
@@SuboptimalEng none of these work for me, I have both @uiw/react-codemirror and codemirror installed using the commands given by `@Daniel Rodrigues` but the subdirectories in those packages aren't there. I guess the only thing different is I'm using react v18 and codemirror v6. I hope I don't have to install each theme or language separately...
@aditisingh9310 Жыл бұрын
@@jeremiedsouza6703Same problem with my code as well
@azariahseblu1673 Жыл бұрын
Very helpful! What if the code you submit contains an error? Is there any way to extract the error message and send it in the response instead?
@alejobengo1062 жыл бұрын
Is there any similar library as python shell but for js?
@SuboptimalEng2 жыл бұрын
I’m not familiar with such a library but I’d assume it exists. In the worst case, you can write the text JavaScript to a JS file and run it programmatically on the console.
@DanEMO592 Жыл бұрын
I was wondering the same thing!
@myke69728 ай бұрын
i wonder how html,css,and javascript with output compilers work...
@dungviet40263 жыл бұрын
I used code mirror to deploy coding application like you and some thing went wrong in 2 day ago with code mirro. Is your source code have same problem?
@SuboptimalEng3 жыл бұрын
Code mirror recently updated to 6.0 but I was using the older version. Not sure if that’s what you mean
@dungviet40263 жыл бұрын
@@SuboptimalEng I use uiw/react-codemirror like use the version after 4.0.0 of uiw/react-codemirror now is error can you check it with your code
@mrmartinwatson12 жыл бұрын
@@dungviet4026 Aye! i was trying to use react-codemirror as well and i am getting a error as well. The thing is, it runs on my brother computer but not on mines. Did you ever figure this out?
@mrmartinwatson1 Жыл бұрын
I couldn't figure this out. Instead I went with default code mirror 6. Works well but requires you to make it into your own solution
@kushagra4401 Жыл бұрын
thanks buddy
@nlhm2 жыл бұрын
Great tutorial ! Could you tell me the global steps on how we can get rid of the "__main__" and sys import i.e. it works if we write : ``` def add(a, b): return a + b ``` please ?
@SuboptimalEng2 жыл бұрын
Thanks! The simplest solution would be to just add main + import to the string once the user submits the code (before you pass it to the backend). Just gotta make sure the spacing is correct.
@nlhm2 жыл бұрын
@@SuboptimalEng Thanks for the answer !
@kaminisray78093 жыл бұрын
Which theme is this?Looks pretty nice :)
@SuboptimalEng3 жыл бұрын
It's the github default dark theme
@swapnil511994 Жыл бұрын
I discovered gold by accident
@ob349159 ай бұрын
I know this is for educational purpose but you SHOULD NOT run untrusted client code on your server