Skip to content

tsmagicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead #4657

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

Closed
Nikki1993 opened this issue Feb 13, 2017 · 4 comments

Comments

@Nikki1993
Copy link

Nikki1993 commented Feb 13, 2017

OS?

macOS 10.12.3

Versions.

  • @angular/cli: 1.0.0-beta.31
  • node: 7.5.0
  • os: darwin x64
  • @angular/common: 2.4.7
  • @angular/compiler: 2.4.7
  • @angular/core: 2.4.7
  • @angular/flex-layout: 2.0.0-beta.5
  • @angular/forms: 2.4.7
  • @angular/http: 2.4.7
  • @angular/material: 2.0.0-beta.1
  • @angular/platform-browser: 2.4.7
  • @angular/platform-browser-dynamic: 2.4.7
  • @angular/router: 3.4.7
  • @angular/cli: 1.0.0-beta.31
  • @angular/compiler-cli: 2.4.7

Repro steps.

  1. Create a new project
  2. Upgrade all components to latest version
  3. Add new service component
  4. Call a simple http.get method to anything, in my case it's a firebase database like this
getFirebase() {
    const firebase = 'https://sampledatabase.firebaseio.com/mydb.json'; // not the actual databse, dummy url

    return this.http.get(firebase).map(response => response.json());
  };
  1. Run ng serve --aot --live-reload
  2. Witness the error in the title myservice.service.tsmagicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead

The log given by the failure.

myservice.service.tsmagicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead

Mention any other details that might be useful.

I am using yarn to install dependencies

@Nikki1993
Copy link
Author

Not sure, but possibly related to this issue #4640 however in that case person runs test suit, I am using ng serve.

@clydin
Copy link
Member

clydin commented Feb 13, 2017

This is fixed in master (#4582) but thanks for reporting.

Also, live reload is enabled by default for serve. You don't have to specify it manually.

@Nikki1993
Copy link
Author

Cheers :)

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants