Skip to content
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

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

Open
jonathantneal opened this issue May 30, 2018 · 0 comments
Open

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

jonathantneal opened this issue May 30, 2018 · 0 comments

Comments

@jonathantneal
Copy link
Member

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant