You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# /home/runner/work/postcss-selector-prefix/postcss-selector-prefix/index.js:4
# const escapeStringRegexp = require("escape-string-regexp");
# ^
# Error [ERR_REQUIRE_ESM]: require() of ES Module /home/runner/work/postcss-selector-prefix/postcss-selector-prefix/node_modules/escape-string-regexp/index.js from /home/runner/work/postcss-selector-prefix/postcss-selector-prefix/index.js not supported.
# Instead change the require of /home/runner/work/postcss-selector-prefix/postcss-selector-prefix/node_modules/escape-string-regexp/index.js in /home/runner/work/postcss-selector-prefix/postcss-selector-prefix/index.js to a dynamic import() which is available in all CommonJS modules.
# at Object.<anonymous> (/home/runner/work/postcss-selector-prefix/postcss-selector-prefix/index.js:4:28)
# at Object.<anonymous> (/home/runner/work/postcss-selector-prefix/postcss-selector-prefix/index.test.js:5:16) {
# code: 'ERR_REQUIRE_ESM'
# }
I think this needs to be in the peerDependencies?
The text was updated successfully, but these errors were encountered: