Skip to content

TypeError: Cannot read property '_run' of undefined #145

Closed

Description

@jonathantneal

The following code:

import parser from 'postcss-selector-parser';
const { process } = parser();

process('button:not([disabled])');

Produces the following error:

TypeError: Cannot read property '_run' of undefined
    at process (/test/node_modules/postcss-selector-parser/dist/processor.js:162:21)
    at /test/index.mjs:4:1
    at ModuleJob.run (internal/modules/esm/module_job.js:106:14)

While the following code produces no error:

import parser from 'postcss-selector-parser';
const processor = parser();

processor.process('button:not([disabled])');

Perhaps this should be documented?

Activity

  1. added a commit that references this issue on Nov 8, 2026
    767b5e1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions