Skip to content
This repository has been archived by the owner on Jul 6, 2021. It is now read-only.

CSS Error > Unexpected token . [react-flexbox-grid & next-css] #318

Closed
iammarkps opened this issue Oct 24, 2018 · 4 comments
Closed

CSS Error > Unexpected token . [react-flexbox-grid & next-css] #318

iammarkps opened this issue Oct 24, 2018 · 4 comments

Comments

@iammarkps
Copy link

When I use react-flexbox-grid, This error shows up. This is my nextjs config

const withCSS = require('@zeit/next-css')
const withBundleAnalyzer = require('@zeit/next-bundle-analyzer')
module.exports = withCSS(
  withBundleAnalyzer({
    analyzeServer: ['server', 'both'].includes(process.env.BUNDLE_ANALYZE),
    analyzeBrowser: ['browser', 'both'].includes(process.env.BUNDLE_ANALYZE),
    bundleAnalyzerConfig: {
      server: {
        analyzerMode: 'static',
        reportFilename: '../bundles/server.html'
      },
      browser: {
        analyzerMode: 'static',
        reportFilename: '../bundles/client.html'
      }
    }
  })
)

Ref: #145
I see the fixed commit but still not working

@iammarkps
Copy link
Author

Step to reproduce

  1. Clone my repo: https://github.com/iammarkps/openhouse
  2. yarn install
  3. yarn dev

@andreystarkov
Copy link

same problem

@xeoneux
Copy link

xeoneux commented Feb 4, 2019

I had a similar issue and solved it by generating a postcss config file in the root 👍

@timneutkens
Copy link
Member

Hi, thanks for creating an issue. We currently recommend using https://nextjs.org/docs/basic-features/built-in-css-support as the plugins have been deprecated in favor of the built-in support.

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

No branches or pull requests

4 participants