npm-liveserver

How to Debug JavaScript in Visual Studio Code with live-server Running

♀尐吖头ヾ 提交于 2020-08-05 04:17:51
问题 Trying to debug a simple HTML and JavaScript project in Visual Studio Code. In the VS Code terminal window, 'live-server' is used to launch the 'index.html'. In VS Code, the 'Debugger for Chrome' is installed and configured. Even after the page is launched in the Chrome browser, the debugger will not attach and give the error message 'Cannot connect to runtime process, timeout after 10000 ms - (reason: Cannot connect to the target: connect ECONNREFUSED 127.0.0.1:9222).'. launch.json "version"

Browser not launching with BrowserSync or live-server

☆樱花仙子☆ 提交于 2019-12-12 07:16:58
问题 I've been using live-server with VS Code to debug some web pages. Everything was fine, I ran live-server from my command line in the page directory and Chrome opened a new tab with the page. Then suddenly it stopped working! I though it was a bit weird so I installed Nodejs again and an issue appeared afterwards. The server is working but it isn't able to open Chrome (nor any other Browser) I tried using BrowserSync instead of live-server and again, the server works but it isn't able to

Webpack Error - Cannot Resolve File or Directory

一个人想着一个人 提交于 2019-11-30 22:53:07
问题 I am getting this error when I npm start my webpack-dev-server: ERROR in multi main Module not found: Error: Cannot resolve 'file' or 'directory' /var/www/html/151208-DressingAphrodite/app in /var/www/html/151208-DressingAphrodite @ multi main Here is my webpack.config.js: var path = require('path'); var webpack = require('webpack'); var HtmlWebpackPlugin = require ('html-webpack-plugin'); const PATHS = { app: path.join (__dirname, 'app'), build : path.join (__dirname, 'build') }; module