Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don´t open the correct URL when i start the server. #165

Open
ghost opened this issue Sep 18, 2019 · 1 comment
Open

Don´t open the correct URL when i start the server. #165

ghost opened this issue Sep 18, 2019 · 1 comment

Comments

@ghost
Copy link

ghost commented Sep 18, 2019

When I start the server, it opens a wrong URL.

When i run the command to start lite-server, an new page is open. But the URL that appear in browser is incorrect.

The lite-server's log shows:

[1] Did not detect a bs-config.json or bs-config.js override file. Using lite-server defaults...
[1] ** browser-sync config **
[1] { injectChanges: false,
[1] files: [ './**/*.{html,htm,css,js}' ],
[1] watchOptions: { ignored: 'node_modules' },
[1] server: { baseDir: 'app', middleware: [ [Function], [Function] ] } }
[1] [Browsersync] Access URLs:
[1] ------------------------------------
[1] Local: http://localhost:3000
[1] External: http://10.80.80.84:3000
[1] ------------------------------------
[1] UI: http://localhost:3001
[1] UI External: http://localhost:3001
[1] ------------------------------------
[1] [Browsersync] Serving files from: app
[1] [Browsersync] Watching files...
[1] [Browsersync] Reloading Browsers... (buffered 9 events)`

The correct URL should be http://localhost:3000, but what I get is http://localhost/?line=3000&column=0.

Follow the link of my github project, where are the packege.json and tsconfig.json.
alurabank

Bug repro steps

  1. My git project, mentioned above, is a project to test my typescript skills. Therefore it is necessary to download it and verify that the package.json file is properly installed.
  2. run the command on the project root folder => npm start
  3. A browser window will be open with the wrong url.

Environment

  • lite-server version: 2.3.0
  • nodejs version: 6.11.4
  • npm version: 6.11.3
  • OS type/version: kubuntu 19.04 x64
  • browser: Google Chrome update 75
@atharwa-24

This comment has been minimized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant