maximkoretskiy / postcss-autoreset

PostCSS plugin for automatic rules isolation
MIT License
244 stars 11 forks source link

Not working with vite config file #37

Closed igortas closed 6 months ago

igortas commented 1 year ago

Hi,

I'm gettng this error:

Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './parser' is not defined by "exports" in /home/igor/projects/ToolbarApp/node_modules/.pnpm/postcss-autoreset@3.0.4/node_modules/postcss-js/package.json

I'm using 3.0.4 latest version, but not working. My vite postcss setup:

css: {
    postcss: {
      plugins: [
        postCssPresetEnv(),
        postSCssNested({}),
        postSCssInitial(),
        postSCssAutoreset({}),
        autoprefixer({}),
      ],
    }
  }
daniellacosse commented 1 year ago

This should fix it. https://github.com/maximkoretskiy/postcss-autoreset/pull/38

maximkoretskiy commented 6 months ago

should be fine now