Skip to content

A build error on Vite #13151

@masanori-iwata

Description

@masanori-iwata

Summary

CSS syntax errors cause the build to fail on Vite.

Error logs

x Build failed in 413ms
[@tailwindcss/vite:generate:build] Unexpected semicolon
file: /Users/masanoriiwata/Desktop/momentify/node_modules/@shopify/polaris/build/esm/styles.css?transform-only
    at X (file:///Users/masanoriiwata/Desktop/momentify/node_modules/tailwindcss/dist/lib.mjs:3:1770)
    at tl (file:///Users/masanoriiwata/Desktop/momentify/node_modules/tailwindcss/dist/lib.mjs:33:1566)
    at tt (file:///Users/masanoriiwata/Desktop/momentify/node_modules/@tailwindcss/node/dist/index.mjs:10:3328)
    at _.generate (file:///Users/masanoriiwata/Desktop/momentify/node_modules/@tailwindcss/vite/dist/index.mjs:1:5387)
    at Object.transform (file:///Users/masanoriiwata/Desktop/momentify/node_modules/@tailwindcss/vite/dist/index.mjs:1:3735)
    at file:///Users/masanoriiwata/Desktop/momentify/node_modules/rollup/dist/es/shared/node-entry.js:21805:40 {
  code: 'PLUGIN_ERROR',
  plugin: '@tailwindcss/vite:generate:build',
  hook: 'transform',
  id: '/Users/masanoriiwata/Desktop/momentify/node_modules/@shopify/polaris/build/esm/styles.css?transform-only',

Code making error

.Polaris-VideoThumbnail__ProgressBar,
.Polaris-VideoThumbnail__Label{
  position: absolute !important;
  top: 0;
  width: 0.0625rem !important;;  <--- **Unexpected semicolon**
  height: 0.0625rem !important;; <--- **Unexpected semicolon**
  margin: 0 !important;; <--- **Unexpected semicolon**
  padding: 0 !important;; <--- **Unexpected semicolon**
  overflow: hidden !important;; <--- **Unexpected semicolon**
  clip-path: inset(50%) !important;; <--- **Unexpected semicolon**
  border: 0 !important;; <--- **Unexpected semicolon**
  white-space: nowrap !important;; <--- **Unexpected semicolon**
}

Packages

"@shopify/admin-api-client": "^1.0.5",
"@shopify/app-bridge-react": "^4.1.6",
"@shopify/polaris": "^13.9.2",
"@shopify/shopify-api": "^11.8.1",
"@shopify/shopify-app-remix": "^3.7.1",
"@shopify/storefront-api-client": "^1.0.4",

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething is broken and not working as intended in the system.untriaged

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions