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

next-css 0.2.1-canary.4 incompatible with Next.js 9.0.7 #543

Closed
samcx opened this issue Sep 30, 2019 · 6 comments · Fixed by vercel/next.js#8944
Closed

next-css 0.2.1-canary.4 incompatible with Next.js 9.0.7 #543

samcx opened this issue Sep 30, 2019 · 6 comments · Fixed by vercel/next.js#8944

Comments

@samcx
Copy link
Member

samcx commented Sep 30, 2019

Bug Report

I have been using the canary version of zeit@/next-css because version 1.0.1 does not minify my CSS chunk in production.

After upgrading to Next.js 9.0.7, I receive this error when starting my application using the now dev command or using the script 'dev': 'next' ->

Screen Shot 2019-09-30 at 12 47 38 PM

I was able to reproduce my error on a blank slate Next.js application with the same dependencies:

  • @zeit/next-css: ^0.2.1-canary.4
  • next: 9.0.7
  • react: 16.10.1
  • react-dom: 16.10.1
    ...
  • now-cli: 16.3.0

Previous Next.js versions (9.0.6 and lower 9 versions) have been working flawlessly.

System Information

  • OS: MacOS Mojave Version 10.14.6
  • Browser: Chrome 77.0.3865.90 (Official Build) (64-bit)
@brycejacobs
Copy link

Same issue after upgrading to 9.0.7.

@Timer
Copy link
Member

Timer commented Oct 3, 2019

Please try next@9.0.8-canary.4 -- this version should fix these broken plugins.

@kachkaev
Copy link
Contributor

kachkaev commented Oct 4, 2019

@cuonghv91 what is the error that you see in next@9.0.8-canary.3?

@cuonghv91
Copy link

cuonghv91 commented Oct 4, 2019

Hey folks !
It works perfect on next@9.0.8-canary.3.
Thanks @Timer

@samcx
Copy link
Member Author

samcx commented Oct 6, 2019

Still getting the same error message with the canary version @zeit/next-css@0.2.1-canary.4, for next@9.0.8-canary.3 to next@9.0.8-canary.5 and next@9.0.8. zeit/next-css@1.0.1 does work with the 9.0.8 versions.

I don't understand why the stable version (zeit/next-css@1.0.1) does not minify CSS? Was this a design choice?

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

Successfully merging a pull request may close this issue.

6 participants