---
title: "Discussion on \"NEXT.js: Selector is not pure\" | Hashnode"
description: "Discussion on \"NEXT.js: Selector is not pure\". Today I stumbled upon this error in my Next.js application using CSS Modules\n\nSyntax error: \nSelector \"img\" is not pure (pure selectors must contain at least one local class or id)\n\nThe reason was that , in one of my CSS modules ( that is a file like..."
url: "https://hashnode.com/posts/nextjs-selector-is-not-pure/5faa72d46bd0b3538653d318"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [NEXT.js: Selector is not pure](https://papidev.hashnode.dev/nextjs-selector-is-not-pure?utm_source=hashnode&utm_medium=feed)

Today I stumbled upon this error in my Next.js application using CSS Modules Syntax error: Selector "img" is not pure (pure selectors must contain at least one local class or id) The reason was that , in one of my CSS modules ( that is a file like...

Nov 10, 2020 · 2 min read · papidev.hashnode.dev  
Updated Nov 17, 2020  
Read the article

-   [#nextjs](https://hashnode.com/tag/nextjs)
-   [#css](https://hashnode.com/tag/css)
-   [#css-modules](https://hashnode.com/tag/css-modules)
-   [#reactjs](https://hashnode.com/tag/reactjs)

## Written by

[Luca Zanzottera](https://hashnode.com/@Zanz)

@Zanz · Italy

  
[View profile](https://hashnode.com/@Zanz)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
