Questions tagged [serve]

Simple 5 minute command-line file / directory server built with connect, inspired by nodejitsu's http-server to show off the simplicity and flexibility of connect as a modular server.

272 questions
7
votes
6 answers

Ionic Serve Live Reload Not Working

I just bought a new MacBook and installed ionic/cordova on my machine, but alas "ionic serve" no longer live reloads HTML changes. Specifically, I see it reloading, but once the reload is complete, the changes are not reflected. Curiously, changes…
frednikgohar
  • 340
  • 1
  • 3
  • 14
5
votes
0 answers

ERROR in Cannot read property 'flags' of undefined

When I run ng serve , I get the following error chunk {main} main.js, main.js.map (main) 2.2 kB [initial] [rendered] chunk {polyfills} polyfills.js, polyfills.js.map (polyfills) 673 bytes [initial] [rendered] chunk {polyfills-es5} polyfills-es5.js,…
therain
  • 51
  • 1
  • 3
5
votes
2 answers

Service worker registration failed with: TypeError: Failed to register a ServiceWorker for scope

I am having a problem with registering service worker in my angular app. Everything was working fine, before I switched from standard npm run start script: "start": "ng serve --aot --port 4200" to script using specific configuration, where I just…
Marek
  • 3,935
  • 10
  • 46
  • 70
5
votes
4 answers

IntelliJ IDEA + Angular ng-serve recompile on every change

I am developing an Angular application using IntelliJ IDEA. I run ng server in the terminal window. angular cli automatically recompile whenever I change any code, and causes the browser constantly reloading. I would like angular cli to recompile…
Dewitt
  • 177
  • 1
  • 9
5
votes
1 answer

webpack - weird console messages (output served, 404s will fallback, content not from webpack is served ... etc.)

After bundling in development mode, I get these messages in console: webpack output is served from / i 「wds」: Content not from webpack is served from C:\projectName\dist i 「wds」: 404s will fallback to /index.html In webpack.dev.config.js I…
user3681549
5
votes
1 answer

Why do I need a server with create-react-app

I recently created a website with create-react-app. Since this is not a web app, why do I need a server to see it? I tried to open the index file in build folder but it doesn't work unless I'm serving it from a server.
ocram
  • 1,384
  • 6
  • 20
  • 36
5
votes
2 answers

Watch and reaload for polymer serve / polyserve?

I'm trying to figure out a way to make polyserve / polymer-cli to reload my browser each time a "watched" file changes but I haven't found anything apart of adding Livereload to the HTMLs files that I think is going to be a mess due that when…
AlbertoFdzM
  • 1,023
  • 11
  • 24
5
votes
2 answers

Django to serve generated excel file

I looked at the various questions similar to mine, but I could not find anything a fix for my problem. In my code, I want to serve a freshly generated excel file residing in my app directory in a folder named files excelFile =…
Speccy
  • 694
  • 8
  • 30
4
votes
3 answers

An unhandled exception occurred: Dev-server address info is not defined

When I try to use ng serve using ssl with custom host name I will get the An unhandled exception occurred: Dev-server address info is not defined. error. I was wondering if anyone has a solution for this problem. ng serve --host myapp.local --port…
Ryan Tavan
  • 121
  • 2
  • 6
4
votes
0 answers

"Failed to load module script" error when building and serving with a base property in vitejs

I'm having an issue in serving a vite app. I'm building the app using the following command: vite build --base=/registration-form/ and serving the app with serve -s dist But I'm getting the following error in the browser console and all…
Abhijit
  • 468
  • 8
  • 22
4
votes
1 answer

Headless servers Opengym AI rendering Error while using ray

While using ray for distributed computation, all the servers are headless (no display). Therefore, using "xvfb-run -s “-screen 0 1400x900x24” to create screen. Getting error pyglet.canvas.xlib.NoSuchDisplayException: Cannot connect to “None” Without…
4
votes
1 answer

How to rename .tar.gz file without extracting the contents and creating the new .tar.gz file in UBUNTU?

I have a command which will create a new .tar.gz file from the existing one, sudo tar -zcvf Existing.tar.gz New.tar.gz this command will create a new New.tar.gz file from the existing Existing.tar.gz file. Can anyone tell me, is there any way to…
Madhu
  • 2,643
  • 6
  • 19
  • 34
4
votes
3 answers

Firebase serve not working

I've been migrating to Firebase 3.0, and with the new changes, we have to use firebase serve on the CLI for local development, and I believe this defaults to port 5000. However, after going through the init process, running firebase serve doesn't do…
user3777933
  • 414
  • 1
  • 5
  • 17
3
votes
3 answers

Window is not defined in Angular

I am trying to implement Server side rendering in my Angular project using angular universal, for that I referred to the documentation but am quite not able to proceed further as on executing npm run dev:ssr I am getting bundles generated but…
3
votes
0 answers

React app shows directory files during `yarn build`

My React app is currently being served on a server by first building the React app, then using serve to serve the files. cd path/to/reactapp yarn build serve -s build/ -l 80 However, when I do a git pull to get updates and then rebuild using yarn…
Athena Wisdom
  • 6,101
  • 9
  • 36
  • 60
1
2
3
18 19