Angular-cli: DeprecationWarning: Tapable.plugin & LibSass @import error/warnings

Created on 11 Jun 2018  路  6Comments  路  Source: angular/angular-cli

Bug Report or Feature Request (mark with an x)

- [x] bug report -> please search issues before submitting
- [ ] feature request

Area

- [x] devkit
- [ ] schematics

Versions

Node v8.9.1
NPM 5.5.1
Windows 10
@angular/cli 6.0.8

Repro steps

Upgraded project from 5.2 to 6, using the upgrade steps. Application is working perfectly, but gives these compile warnings/errors:

ng build --output-hashing none --prod --progress false
ng test --watch=false --browsers PhantomJS --progress false

The log given by the failure

BUILD log output:

`DEPRECATION WARNING on line 11, column 8 of stdin:
Including .css files with @import is non-standard behaviour which will be removed in future versions of LibSass.
Use a custom importer to maintain this behaviour. Check your implementations documentation on how to create a custom importer.`

TEST log output:
`(node:15240) DeprecationWarning: Tapable.plugin is deprecated. Use new API on `.hooks` instead`

Desired functionality

No more errors/warnings.

Mention any other details that might be useful

blocked devkibuild-angular low inconvenient bufix

Most helpful comment

  1. For the LibSass deprecation warning, it belongs to node-sass, here are two options:
  2. For the Tapable.plugin deprecation warning, I've already submitted a PR #11254

All 6 comments

  1. For the LibSass deprecation warning, it belongs to node-sass, here are two options:
  2. For the Tapable.plugin deprecation warning, I've already submitted a PR #11254

@Teamop Is there any configuration workaround that can be used until this is merged and released? some flag I can add to ng test so it won't show this warning?

@HarelM AFAIK, no.

Thanks for reporting this issue. This issue is now obsolete due to changes in the recent releases. Please update to the most recent Angular CLI version.

If the problem persists after upgrading, please open a new issue, provide a simple repository reproducing the problem, and describe the difference between the expected and current behavior.

Does this mean this issue is solved in 7.1.2?

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._

Was this page helpful?
0 / 5 - 0 ratings