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

CSS transform: translate3d fails to parse #14632

Closed
Timer opened this issue Jun 27, 2020 · 2 comments · Fixed by #14638
Closed

CSS transform: translate3d fails to parse #14632

Timer opened this issue Jun 27, 2020 · 2 comments · Fixed by #14638
Assignees
Labels
Upstream Related to using Next.js with a third-party dependency. (e.g., React, UI/icon libraries, etc.).
Milestone

Comments

@Timer
Copy link
Member

Timer commented Jun 27, 2020

Bug report

Describe the bug

See upstream report: cssnano/cssnano#920

Failed to compile.

TypeError: Cannot read property 'type' of undefined
    at /Users/joe/Documents/Development/Work/zeit/next.js/static/css/83f915061ddb4839a422.css:21:3
    at stringifyNode (/Users/joe/Documents/Development/Work/zeit/next.js/node_modules/postcss-value-parser/lib/stringify.js:2:19)
    at stringify (/Users/joe/Documents/Development/Work/zeit/next.js/node_modules/postcss-value-parser/lib/stringify.js:41:16)
    at stringifyNode (/Users/joe/Documents/Development/Work/zeit/next.js/node_modules/postcss-value-parser/lib/stringify.js:19:11)
    at stringify (/Users/joe/Documents/Development/Work/zeit/next.js/node_modules/postcss-value-parser/lib/stringify.js:41:16)
    at ValueParser.toString (/Users/joe/Documents/Development/Work/zeit/next.js/node_modules/postcss-value-parser/lib/index.js:14:38)
    at /Users/joe/Documents/Development/Work/zeit/next.js/node_modules/postcss-reduce-transforms/dist/index.js:213:82
    at /Users/joe/Documents/Development/Work/zeit/next.js/node_modules/postcss/lib/container.js:198:18
    at /Users/joe/Documents/Development/Work/zeit/next.js/node_modules/postcss/lib/container.js:135:18
    at Rule.each (/Users/joe/Documents/Development/Work/zeit/next.js/node_modules/postcss/lib/container.js:101:16)
    at Rule.walk (/Users/joe/Documents/Development/Work/zeit/next.js/node_modules/postcss/lib/container.js:131:17)
    at /Users/joe/Documents/Development/Work/zeit/next.js/node_modules/postcss/lib/container.js:148:24
    at Root.each (/Users/joe/Documents/Development/Work/zeit/next.js/node_modules/postcss/lib/container.js:101:16)
    at Root.walk (/Users/joe/Documents/Development/Work/zeit/next.js/node_modules/postcss/lib/container.js:131:17)
    at Root.walkDecls (/Users/joe/Documents/Development/Work/zeit/next.js/node_modules/postcss/lib/container.js:196:19)
    at /Users/joe/Documents/Development/Work/zeit/next.js/node_modules/postcss-reduce-transforms/dist/index.js:204:13
    at initializePlugin (/Users/joe/Documents/Development/Work/zeit/next.js/node_modules/cssnano/dist/index.js:31:51) {
  postcssNode: Declaration {
    raws: { before: '\n  ', between: ':' },
    type: 'decl',
    parent: Rule {
      raws: [Object],
      type: 'rule',
      nodes: [Array],
      parent: [Root],
      source: [Object],
      selector: '.transform-parsing',
      lastEach: 6,
      indexes: [Object]
    },
    source: { start: [Object], input: [Input], end: [Object] },
    prop: 'transform',
    value: 'translate3d(0px, 0px)'
  }
}

To Reproduce

.transform-parsing {
  transform: translate3d(0px, 0px);
}

Expected behavior

Should compile successfully.

@Timer Timer self-assigned this Jun 27, 2020
@Timer
Copy link
Member Author

Timer commented Jun 27, 2020

As reported by @pacocoursey! 🙏

@Timer Timer added the Upstream Related to using Next.js with a third-party dependency. (e.g., React, UI/icon libraries, etc.). label Jun 27, 2020
@Timer Timer added this to the 9.x.x milestone Jun 27, 2020
Timer added a commit to Timer/next.js that referenced this issue Jun 27, 2020
@kodiakhq kodiakhq bot closed this as completed in #14638 Jun 29, 2020
kodiakhq bot pushed a commit that referenced this issue Jun 29, 2020
@Timer Timer modified the milestones: 9.x.x, iteration 4 Jun 29, 2020
rokinsky pushed a commit to rokinsky/next.js that referenced this issue Jul 11, 2020
@balazsorban44
Copy link
Member

This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

@vercel vercel locked as resolved and limited conversation to collaborators Jan 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Upstream Related to using Next.js with a third-party dependency. (e.g., React, UI/icon libraries, etc.).
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants