Skip to content

@parcel/transformer-css: Unknown at rule: @keyframes #10231

@SetTrend

Description

@SetTrend

🐛 bug report

The CSS @keyframes at-rule is unknown to parcel.

🚨 Build failed.

@parcel/transformer-css: Unknown at rule: @keyframes

🎛 Configuration (.babelrc, package.json, cli command)

{
  "source": [
    "src/*.html",
    "src/*.gif"
  ],
  "type": "module",
  "scripts": {
    "parcel:dev:build": "parcel build --target dev --no-content-hash",
    "parcel:prod:build": "parcel build --target prod --no-content-hash"
  },
  "targets": {
    "dev": {
      "optimize": false,
      "distDir": "dist/dev"
    },
    "prod": {
      "sourceMap": false,
      "distDir": "dist/prod"
    }
  },
  "devDependencies": {
    "@parcel/transformer-jsonld": "^2.16.0",
    "parcel": "^2.16.0"
  }
}

🤔 Expected Behavior

The CSS should transpile flawlessly

😯 Current Behavior

🚨 Build failed.

@parcel/transformer-css: Unknown at rule: @keyframes

🔦 Context

I'm trying to render a HTML page, with CSS and TypeScript referenced through <link> and <script> tags.

💻 Code Sample

CSS

@keyframes unveil
{
  to
  {
    opacity: 1;
  }
}

html,
body
{
 ...
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions