Questions tagged [lite-server]

Lightweight development only node server that serves a web app, opens it in the browser, refreshes when html or javascript change, injects CSS changes using sockets, and has a fallback page when a route is not found.

125 questions
0
votes
1 answer

angular2 texfield value sync up in all browser

I take a little surprise today working with angular 2, i'm developing a single page form to capture some data, and i discover that the value enter in my texfield using google chrome is sync up with my other browser mozilla firefox. Anybody have some…
manunoly
  • 39
  • 6
0
votes
1 answer

Lite server without config file

I'm using lite server for developing my Angular projects. It depends on and uses BrowserSync to do most of the work (serving the site to localhost, live reload etc). Currently, I have a config file bs-config.json in my root for this module: { …
CaribouCode
  • 13,998
  • 28
  • 102
  • 174
0
votes
2 answers

Angular2 http.get results in a Mixed Content error or No 'Access-Control-Allow-Origin' header

I am trying but unable to do a http.get request. Below is the relevant parts of the Service I am using. import { Injectable } from '@angular/core'; import { Http, Response, Headers,RequestOptions } from '@angular/http'; import…
Rohan
  • 1,312
  • 3
  • 17
  • 43
0
votes
1 answer

Make Lite-Server run as localhost:3000/parentdirectory and accessible as localhost/parentdirectory

I have an Angular2 app with this file structure: ParentDirectory AppDirectory app app.component etc node-module @angular lite-server etc index.html styles.css etc I am testing the app with the lite-server and it runs beautifully on…
saka
  • 83
  • 2
  • 9
0
votes
1 answer

Node lite-server gzip file

I am using lite-server locally for angular2 dev. I compressed all my js into a min.js file with 1.7Mb which is working fine. Now I want to squeeze it to a gzip file with 280Kb which is much smaller. The bad part is that Chrome is downloading the…
pedrotorres
  • 1,222
  • 2
  • 13
  • 26
0
votes
2 answers

using lite server with real data

Lite server and Browser-sync are really nice tools for fast UI programming. My problem arise when I try ajax calls for data from my real web server. It seems basic to me to get json objects via ajax call from a real server (java, php, c#, etc), and…
Avi
  • 1,924
  • 3
  • 17
  • 31
0
votes
1 answer

angular2 lite-server change localhost:3000 to myapp.dev:8000

I want to change default browsersync host from localhost:3000 to myapp.dev:8000. I created a bs-config.js: module.exports = { "port": 8000, "server": { "baseDir": "./" }, }; Port is changed to 8000, but I don't know how can I change the…
CsKovari
  • 11
  • 2
0
votes
1 answer

angular2 config outDir

i create my first project and started on angular 2 getstarted I changed my config tsconfig.json with { "compilerOptions": { "target": "es5", "module": "system", "moduleResolution": "node", "sourceMap": true, "emitDecoratorMetadata":…
Bonci Marco
  • 301
  • 2
  • 5
  • 17
-1
votes
1 answer

While installing lite-server it show vulnerabilities

lite-server@2.5.4 added 1 package from 2 contributors and audited 340 packages in 20.502s found 4 vulnerabilities (3 low, 1 high) run npm audit fix to fix them, or npm audit for details After running 'npm audit fix' it shows 1 package is looking…
-1
votes
1 answer

Installation of npm lite-server gives an error

While following the Petshop tutorial, the final step requires the installation of lite-server from npm for the project to run on my browser (Firefox). I tried the following command for installation, with PowerShell in administrator mode: npm i…
Raisa A
  • 437
  • 7
  • 21
-1
votes
1 answer

Cors issue on ngx-translate of externally loaded js in Angular project

First a bit of context: we've got an Angular project (call it "project X") that has its own json translation files (loaded with ngx-translate). This project is then ported as Angular Elements (the whole thing is ported to a single js file, call it…
-1
votes
1 answer

Client side code updating server side code

I have deployed a simple javascript memory game to heroku with lite-server. https://happy-birthday-eline.herokuapp.com To my surprise, when a user turns a card, all other users see the card turn too. I can't figure out why. I thought client-side…
SamHeyman
  • 207
  • 3
  • 13
-1
votes
1 answer

How to use lite-server for nodejs application?

I started a project using lite-server. So far I only used an index.html file and client-side Javascript, but now I want to add server-side JavaScript functionality. How can I configure lite-server to use server.js for routing? Using just node the…
Mindful
  • 15
  • 1
  • 5
-1
votes
1 answer

TS2304 error: can't find Promise

I am running angular2 using VSCode and suddenly my program is not running and command prompt showing an error error TS2304: Cannot find name 'Promise'. I have already installed typings restarted the pc still not working
nazz
  • 1
  • 1
-1
votes
2 answers

Angular 2 issues

I have developed an application in angular 2 with lite server. As soon as I start lite server, my application works fine and fast but after some time, my application becomes very slow. I would restart lite server (npm start) to fix this, but I am…
Pavan Jois
  • 31
  • 5
1 2 3
8
9