Skip to content
This repository was archived by the owner on Aug 28, 2026. It is now read-only.
This repository was archived by the owner on Aug 28, 2026. It is now read-only.

CssSyntaxError with animation property #211

Closed

Description

@4ware

When i'm running the css-loader with the following code i get an error:

@charset "UTF-8";

.animated {
-webkit-animation-duration: 1s;
animation-duration: 1s;
-webkit-animation-fill-mode: both;
animation-fill-mode: both;
z-index: 100;
}

Module build failed: CssSyntaxError: /css-loader!/development/flot.to.web/node_modules/style-loader/index.js!/development/flot.to.web/node_modules/css-loader/index.js!/development/flot.to.web/css/animate.css:5:1: Unknown word

Activity

  1. psypersky commented on Mar 2, 2016

    @psypersky

    Same here

  2. batwicket commented on Mar 7, 2016

    @batwicket

    I'm also getting an error when '@charset' is parsed.

  3. gmaggess commented on Mar 17, 2016

    @gmaggess

    Has anyone found a fix for this?

  4. arufian commented on Mar 29, 2016

    @arufian

    got same issue

  5. kincaidoneil commented on Mar 30, 2016

    @kincaidoneil

    I've also experienced this. Animate.css invokes it in the first line, so there's definitely the possibility many others are also encountering it. Any update on a potential fix?

  6. newbieYoung commented on Apr 8, 2016

    @newbieYoung

    I have solved the problem by changing " require('css!./file.css') " to " import 'file.css' ".I guess when you use babel plugin and css-loader plugin you will meet the problem.

  7. Sugarball commented on Apr 13, 2016

    @Sugarball

    got same issue on normalize.css using import "css-loader!normalize.css"

  8. newbieYoung commented on Apr 13, 2016

    @newbieYoung

    You should change " import 'css-loader!normalize.css' " to " import 'normalize.css' ". The right format is " import + path ".

  9. jkinzel-r7 commented on Aug 8, 2016

    @jkinzel-r7

    I'm getting this issue because we are compiling SASS including some vendor SASS that has the @charset at the top of the file. Any ideas on work arounds or fixes?

  10. delijah commented on Aug 17, 2016

    @delijah

    Any news on this?

  11. alexander-akait commented on Apr 20, 2017

    @alexander-akait
    Member

    /cc @michael-ciniawsky maybe bug with old version postcss or old version in plugin for postcss which we used for parsing, but now error does not happen ⭐ . I think we can close this issue.
    /cc @4ware @psypersky @batwicket @gmaggess @arufian @kincaidoneil @newbieYoung @jkinzel-r7 all works as expected now?

  12. michael-ciniawsky commented on Apr 20, 2017

    @michael-ciniawsky
    Contributor

    Reopen if still any regressions with the latest version of plugins/loaders/webpack etc 😛

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions