Resolve @import
in core
#3263
Triggered via pull request
September 19, 2024 14:06
Status
Failure
Total duration
3m 58s
Artifacts
–
Annotations
12 errors
src/index.test.ts > @apply can be used without emitting the theme in the CSS file:
packages/tailwindcss/src/index.ts#L194
Error: Files imported with `@import "…" theme(…)` must only contain `@theme` blocks.
❯ ../tailwindcss/src/index.ts:194:17
❯ Module.walk ../tailwindcss/src/ast.ts:87:7
❯ ../tailwindcss/src/index.ts:192:7
❯ walk ../tailwindcss/src/ast.ts:87:7
❯ Module.walk ../tailwindcss/src/ast.ts:108:7
❯ parseCss ../tailwindcss/src/index.ts:76:3
❯ Module.compile ../tailwindcss/src/index.ts:339:38
❯ Module.z ../@tailwindcss-node/dist/index.mjs:1:1397
❯ OnceExit src/index.ts:83:32
❯ LazyResult.runAsync ../../node_modules/.pnpm/[email protected]/node_modules/postcss/lib/lazy-result.js:298:15
|
src/index.test.ts > plugins > local CJS plugin from `@import`-ed file:
packages/tailwindcss/src/index.ts#L194
Error: Files imported with `@import "…" theme(…)` must only contain `@theme` blocks.
❯ ../tailwindcss/src/index.ts:194:17
❯ Module.walk ../tailwindcss/src/ast.ts:87:7
❯ ../tailwindcss/src/index.ts:192:7
❯ walk ../tailwindcss/src/ast.ts:87:7
❯ Module.walk ../tailwindcss/src/ast.ts:108:7
❯ parseCss ../tailwindcss/src/index.ts:76:3
❯ Module.compile ../tailwindcss/src/index.ts:339:38
❯ Module.z ../@tailwindcss-node/dist/index.mjs:1:1397
❯ OnceExit src/index.ts:83:32
❯ LazyResult.runAsync ../../node_modules/.pnpm/[email protected]/node_modules/postcss/lib/lazy-result.js:298:15
|
src/at-import.test.ts > supports theme(reference) imports:
packages/tailwindcss/src/at-import.test.ts#L229
AssertionError: promise rejected "Error: Files imported with `@import "…" t…" instead of resolving
❯ src/at-import.test.ts:229:3
Caused by: Caused by: Error: Files imported with `@import "…" theme(…)` must only contain `@theme` blocks.
❯ src/index.ts:194:17
❯ Module.walk src/ast.ts:87:7
❯ src/index.ts:192:7
❯ walk src/ast.ts:87:7
❯ Module.walk src/ast.ts:108:7
❯ parseCss src/index.ts:76:3
❯ Module.compile src/index.ts:339:38
❯ run src/at-import.test.ts:19:18
|
tests (20, macos-14)
Process completed with exit code 1.
|
src/index.test.ts > @apply can be used without emitting the theme in the CSS file:
packages/tailwindcss/src/index.ts#L194
Error: Files imported with `@import "…" theme(…)` must only contain `@theme` blocks.
❯ ../tailwindcss/src/index.ts:194:17
❯ Module.walk ../tailwindcss/src/ast.ts:87:7
❯ ../tailwindcss/src/index.ts:192:7
❯ walk ../tailwindcss/src/ast.ts:87:7
❯ Module.walk ../tailwindcss/src/ast.ts:108:7
❯ parseCss ../tailwindcss/src/index.ts:76:3
❯ Module.compile ../tailwindcss/src/index.ts:339:38
❯ Module.z ../@tailwindcss-node/dist/index.mjs:1:1396
❯ OnceExit src/index.ts:83:32
❯ LazyResult.runAsync ../../node_modules/.pnpm/[email protected]/node_modules/postcss/lib/lazy-result.js:298:15
|
src/index.test.ts > plugins > local CJS plugin from `@import`-ed file:
packages/tailwindcss/src/index.ts#L194
Error: Files imported with `@import "…" theme(…)` must only contain `@theme` blocks.
❯ ../tailwindcss/src/index.ts:194:17
❯ Module.walk ../tailwindcss/src/ast.ts:87:7
❯ ../tailwindcss/src/index.ts:192:7
❯ walk ../tailwindcss/src/ast.ts:87:7
❯ Module.walk ../tailwindcss/src/ast.ts:108:7
❯ parseCss ../tailwindcss/src/index.ts:76:3
❯ Module.compile ../tailwindcss/src/index.ts:339:38
❯ Module.z ../@tailwindcss-node/dist/index.mjs:1:1396
❯ OnceExit src/index.ts:83:32
❯ LazyResult.runAsync ../../node_modules/.pnpm/[email protected]/node_modules/postcss/lib/lazy-result.js:298:15
|
src/at-import.test.ts > supports theme(reference) imports:
packages/tailwindcss/src/at-import.test.ts#L229
AssertionError: promise rejected "Error: Files imported with `@import "…" t…" instead of resolving
❯ src/at-import.test.ts:229:3
Caused by: Caused by: Error: Files imported with `@import "…" theme(…)` must only contain `@theme` blocks.
❯ src/index.ts:194:17
❯ Module.walk src/ast.ts:87:7
❯ src/index.ts:192:7
❯ walk src/ast.ts:87:7
❯ Module.walk src/ast.ts:108:7
❯ parseCss src/index.ts:76:3
❯ Module.compile src/index.ts:339:38
❯ run src/at-import.test.ts:19:18
|
tests (20, ubuntu-latest)
Process completed with exit code 1.
|
src/index.test.ts > @apply can be used without emitting the theme in the CSS file:
packages/tailwindcss/src/index.ts#L194
Error: Files imported with `@import "…" theme(…)` must only contain `@theme` blocks.
❯ ../tailwindcss/src/index.ts:194:17
❯ Module.walk ../tailwindcss/src/ast.ts:87:7
❯ ../tailwindcss/src/index.ts:192:7
❯ walk ../tailwindcss/src/ast.ts:87:7
❯ Module.walk ../tailwindcss/src/ast.ts:108:7
❯ parseCss ../tailwindcss/src/index.ts:76:3
❯ Module.compile ../tailwindcss/src/index.ts:339:38
❯ Module.z ../@tailwindcss-node/dist/index.mjs:1:1384
❯ OnceExit src/index.ts:83:32
❯ LazyResult.runAsync ../../node_modules/.pnpm/[email protected]/node_modules/postcss/lib/lazy-result.js:298:15
|
src/index.test.ts > plugins > local CJS plugin from `@import`-ed file:
packages/tailwindcss/src/index.ts#L194
Error: Files imported with `@import "…" theme(…)` must only contain `@theme` blocks.
❯ ../tailwindcss/src/index.ts:194:17
❯ Module.walk ../tailwindcss/src/ast.ts:87:7
❯ ../tailwindcss/src/index.ts:192:7
❯ walk ../tailwindcss/src/ast.ts:87:7
❯ Module.walk ../tailwindcss/src/ast.ts:108:7
❯ parseCss ../tailwindcss/src/index.ts:76:3
❯ Module.compile ../tailwindcss/src/index.ts:339:38
❯ Module.z ../@tailwindcss-node/dist/index.mjs:1:1384
❯ OnceExit src/index.ts:83:32
❯ LazyResult.runAsync ../../node_modules/.pnpm/[email protected]/node_modules/postcss/lib/lazy-result.js:298:15
|
src/at-import.test.ts > supports theme(reference) imports:
packages/tailwindcss/src/at-import.test.ts#L229
AssertionError: promise rejected "Error: Files imported with `@import "…" t…" instead of resolving
❯ src/at-import.test.ts:229:3
Caused by: Caused by: Error: Files imported with `@import "…" theme(…)` must only contain `@theme` blocks.
❯ src/index.ts:194:17
❯ Module.walk src/ast.ts:87:7
❯ src/index.ts:192:7
❯ walk src/ast.ts:87:7
❯ Module.walk src/ast.ts:108:7
❯ parseCss src/index.ts:76:3
❯ Module.compile src/index.ts:339:38
❯ run src/at-import.test.ts:19:18
|
tests (20, windows-latest)
Process completed with exit code 1.
|