GithubHelp home page GithubHelp logo

Incorrect dynamic script returned when hostname and ember server are on different ports. Setting `options.liveReloadPort` breaks the loading of livereload.js script about ember-cli-inject-live-reload HOT 3 CLOSED

ember-cli avatar ember-cli commented on June 3, 2024 1
Incorrect dynamic script returned when hostname and ember server are on different ports. Setting `options.liveReloadPort` breaks the loading of livereload.js script

from ember-cli-inject-live-reload.

Comments (3)

Paxxinet avatar Paxxinet commented on June 3, 2024 1
  1. If you set liveReloadPort: 4700 (some arbitrary number), the generated dynamic script breaks on this line with this error:
    var prefixURL = '(location.protocol || 'http:') + '//' + host + ':' + 4700'; // Syntax Error

Even when no changes are made to a brand new project (ember version 2.18, ember-cli-inject-live-reload version 2.0.0), the below error is shown and when downgraded to ember-cli-inject-live-reload version 1.8.2 - no error is shown and all is good.

error with 2_0_0 version 1
error with 2_0_0 version 2

from ember-cli-inject-live-reload.

rwjblue avatar rwjblue commented on June 3, 2024

Thank you for such a detailed issue report!

from ember-cli-inject-live-reload.

rwjblue avatar rwjblue commented on June 3, 2024

Also requires #66 to work with [email protected]...

from ember-cli-inject-live-reload.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.