We are making a web app, and using Vscode live share feature, to edit on the same code. Altough we can edit the same code, my colleague cannot run the html code(chrome) in his own computer, for some reason we are on the same terminal(my mac), and when he runs it we see an error on my side too. How can we solve this issue on my end, to I have to give permissions? And how do we create a a different terminal for him using the base code.
Related
I've made a bot/app in visual studio code and Node JS and it runs fine, but i have other projects I need to relaunch as well while keeping the current one running. I remember having this problem years ago called pm2, thought it was pretty useful, but as i recall the bug problem was while it could relache the app if it crashed so it stayed up 24/7 i didn't have acess to the console log which i use to track the topic that trigers my app, the user name who triggered it and the response. Anyone familiar with PM2 or another program that would retain the console for each running app?
Edit: found some info via
https://pm2.keymetrics.io/docs/usage/quick-start/
theres even a web app you can set up to run your app
https://app.pm2.io/
but as of yet i haven't found a way to easily monitor the console.log output
so near as i can tell the best way to monitor the console long va the web app is with
console.log(`log`);
As this works flawlessly with my discord js bot, however my reddit bot doesnt seem to use it so it may be API specific on what can pass/use Console.log
I'm trying to run my Flutter Web app on Local Area Network (intranet) in my work. But there is no internet access. And I have this issue “ Failed to load resource: net :: ERR_INTERNET_DISCONNECTED “. I think, problem is with canvaskit.js because my app try to download from internet. Do you have some idea how to fix it?
This is a common mistake when you use Flutter web within an Intranet that has no Internet access. I will try to explain it in detail.
In Flutter Web you can choose between two web renderers (more info here). The default one is CanvasKit, but there is also the HTML renderer.
The problem with CanvasKit web renderer is that when you start the application for the first time, it goes to unpkg.com and downloads two files: canvaskit.js and canvskit.wasm. Once downloaded, the browser caches them and Flutter doesn't need to download them again in the future.
But, if the app can't download these files, the application fails to start. Which is the problem that #TomášTorok mentions.
What are the solutions? There are two possibilities:
1 - Force your app to use the HTML web renderer, as it doesn't need to download anything over the Internet. This web renderer has some limitations that CanvasKit doesn't have, and vice versa (in this article they explain everything in detail)
To use the HTML in debug:
flutter run -d chrome --web-renderer html
OR if you want to build your app:
flutter build web --web-renderer html
2 - Download manually the canvaskit.js and canvaskit.wasm files from unpkg.com (example link), add them inside your project (inside /web folder), and force Flutter web to grab the local files and not download anything from the Internet.
It's a bit more work, but it's not complex either. You have the instructions in this link.
If I understood correctly;
There is nothing to do with flutter version or flutter channel. The error message is clearly explaining that internet is disconnected. The universal truth is you need a minimum speed internet to debug or release your flutter code development. Try to check the internet connection.
Reply back if this answer is helpful to you, also share how did you solved the issue.
I just started my JavaScript course but I am having issues running JavaScript code.
Note: I built a system and I have nodejs but my system is giving me issues:
Open windows search bar and look for, "Environment Variables", open it and look for "path" variable for current user and if there isn't a path like below, add one.
C:\Users\<your username here>\AppData\Roaming\npm
If it still doesn't work then you probably didn't install NodeJS correctly. Install Node again.
Open CMD, type "node" and press Enter. If it gives a response like "Welcome to Node ...". There you have it, it will work now.
Looking at the picture you uploaded,
I feel like you trying to run your node directly from your sublime console
and it not properly install
visit this link https://pawelgrzybek.com/javascript-console-in-sublime-text/
How to run javascript with node js without opening google chrome from different proxies.
Can i get a sample code.
eg project: https://github.com/huytd/agar.io-clone
eg2project: https://drive.google.com/drive/folders/19v9lxRrRqrMp6n3k5rbDRljGVdLYELQc?usp=sharing
I don't want to use the project i link to
briefly: I'm trying to find a code that goes to Facebook.com/nick and clicks the send message button
puppeteer: puppeteer is no-gui-on-gui chromium browser. and nodejs
Before I get into the details, please note:
I'm using Meteor 1.2 and the latest version of WebStorm 11.
Client-side debugging works fine, at least using the Chrome Web Inspector, client-side logging is shown in the console.
My issue is I can’t get server-side debugging to work. I’ve now tried all of the following to no avail:
Running meteor debug and launching Node Inspector (it hooks into my Meteor instance but doesn’t log anything server side or hit any breakpoints I've set using debugging; statements in the code, code execution was not suspended)
Launching Meteor from WebStorm, putting console.log() statements all over the place. Nothing would get printed, breakpoints wouldn’t be hit
Running meteor shell and trying to see logging there
Using Atom IDE instead, however this is not suitable for me because of a company proxy which the Atom plugin manager isn't able to circumvent (doesn't route proxy info).
WS 11.0.2 definitely broke this. Although not listed on JetBrains' website, typing in the download executable URL for WS 11.0.1 by hand (http://download.jetbrains.com/webstorm/WebStorm-11.0.1.exe) allowed me to get back to the previous minor version. After installing 11.0.1, I am able to debug my code in the WebStorm IDE, set and hit breakpoints and see server-side logging.