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

postcss overwrite use mode:'file' will cause crash #357

Closed
Landon-CN opened this issue Dec 21, 2021 · 1 comment
Closed

postcss overwrite use mode:'file' will cause crash #357

Landon-CN opened this issue Dec 21, 2021 · 1 comment

Comments

@Landon-CN
Copy link

craco: 6.4.3
react-scripts: 5.0.0

craco.config.js

style: {
    postcss: {
      mode: 'file',
      loaderOptions: {
        config: {
          path: path.resolve(__dirname, './postcss.config.js'),
        },
      },
    },
  }

error:
image

why:
https://github.com/gsoft-inc/craco/blob/master/packages/craco/lib/features/webpack/style/postcss.js#L29

craco read match.loader.options.ident
but react-scripts move ident to postcssOptions
https://github.com/facebook/create-react-app/blob/v5.0.0/packages/react-scripts/config/webpack.config.js#L139

it create less plugin crash

@patricklafrance
Copy link
Contributor

Duplicate of #378

@patricklafrance patricklafrance marked this as a duplicate of #378 Jan 13, 2022
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

2 participants