Skip to content

Node#before is deprecated. Use Node#raws.before #286

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
francoisromain opened this issue May 19, 2017 · 6 comments
Closed

Node#before is deprecated. Use Node#raws.before #286

francoisromain opened this issue May 19, 2017 · 6 comments
Labels

Comments

@francoisromain
Copy link

Hello
When I use postcss-import and then postcss-next, there is this warning in the console:

Node#before is deprecated. Use Node#raws.before

I made a repo to reproduce here:
https://github.com/francoisromain/test-postcss-import-cssnext

@michael-ciniawsky
Copy link

MoOx/postcss-cssnext#374 (Issue)
MoOx/postcss-cssnext#384 (PR)

postcss-import >= 10.0.0 shouldn't cause this and supports PostCSS v6

Can be closed 😛

@lemmon
Copy link

lemmon commented Jul 5, 2017

I am still getting this even with latest postcss versions:

"postcss": "^6.0.5",
"postcss-cssnext": "^2.11.0",
"postcss-import": "^10.0.0"

@julkue
Copy link

julkue commented Jul 5, 2017

Me too.

@francoisromain
Copy link
Author

Is it related to this: csstools/postcss-nesting#38 ?

@julkue
Copy link

julkue commented Jul 5, 2017

It's the same error. Since the message doesn't include a plugin name, it could be any postcss plugin.

@RyanZim
Copy link
Collaborator

RyanZim commented Jul 5, 2017

If you're using postcss-cssnext, you're going to get this error until postcss-cssnext is updated. Period. Locking since this isn't a postcss-import issue.

@postcss postcss locked and limited conversation to collaborators Jul 5, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

5 participants