Skip to content

Commit

Permalink
Add debugging info for Windows #3
Browse files Browse the repository at this point in the history
  • Loading branch information
philipp-spiess committed Jul 31, 2024
1 parent 6ca3b36 commit 4ca70bc
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions integrations/vite/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,12 +120,12 @@ test(
},
},
async ({ root, fs }) => {
execSync('echo %cd%', { cwd: root })
console.log(execSync('echo %cd%', { cwd: root }).toString())
execSync('pnpm run build', { cwd: root })

Check failure on line 124 in integrations/vite/index.test.ts

View workflow job for this annotation

GitHub Actions / build (20, windows-latest)

vite/index.test.ts > builds with Vite

Error: Command failed: pnpm run build x Build failed in 165ms error during build: [vite:build-html] The "fileName" or "name" properties of emitted chunks and assets must be strings that are neither absolute nor relative paths, received "../../../../../../runneradmin/AppData/Local/Temp/tailwind-integrationsXXXXXXtjAcC7/src/index.html". at getRollupError (file:///C:/Users/RUNNER~1/AppData/Local/Temp/tailwind-integrationsXXXXXXtjAcC7/node_modules/.pnpm/rollup@4.19.1/node_modules/rollup/dist/es/shared/parseAst.js:392:41) at error (file:///C:/Users/RUNNER~1/AppData/Local/Temp/tailwind-integrationsXXXXXXtjAcC7/node_modules/.pnpm/rollup@4.19.1/node_modules/rollup/dist/es/shared/parseAst.js:388:42) at FileEmitter.emitFile (file:///C:/Users/RUNNER~1/AppData/Local/Temp/tailwind-integrationsXXXXXXtjAcC7/node_modules/.pnpm/rollup@4.19.1/node_modules/rollup/dist/es/shared/node-entry.js:19370:24) at Object.generateBundle (file:///C:/Users/RUNNER~1/AppData/Local/Temp/tailwind-integrationsXXXXXXtjAcC7/node_modules/.pnpm/vite@5.3.5_lightningcss@1.25.1/node_modules/vite/dist/node/chunks/dep-mCdpKltl.js:35560:14) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Bundle.generate (file:///C:/Users/RUNNER~1/AppData/Local/Temp/tailwind-integrationsXXXXXXtjAcC7/node_modules/.pnpm/rollup@4.19.1/node_modules/rollup/dist/es/shared/node-entry.js:18245:9) at async file:///C:/Users/RUNNER~1/AppData/Local/Temp/tailwind-integrationsXXXXXXtjAcC7/node_modules/.pnpm/rollup@4.19.1/node_modules/rollup/dist/es/shared/node-entry.js:20784:27 at async catchUnfinishedHookActions (file:///C:/Users/RUNNER~1/AppData/Local/Temp/tailwind-integrationsXXXXXXtjAcC7/node_modules/.pnpm/rollup@4.19.1/node_modules/rollup/dist/es/shared/node-entry.js:20211:16) at async build (file:///C:/Users/RUNNER~1/AppData/Local/Temp/tailwind-integrationsXXXXXXtjAcC7/node_modules/.pnpm/vite@5.3.5_lightningcss@1.25.1/node_modules/vite/dist/node/chunks/dep-mCdpKltl.js:65125:16) at async CAC.<anonymous> (file:///C:/Users/RUNNER~1/AppData/Local/Temp/tailwind-integrationsXXXXXXtjAcC7/node_modules/.pnpm/vite@5.3.5_lightningcss@1.25.1/node_modules/vite/dist/node/cli.js:828:5) ❯ getRollupError C:/Users/RUNNER~1/AppData/Local/Temp/tailwind-integrationsXXXXXXtjAcC7/node_modules/.pnpm/rollup@4.19.1/node_modules/rollup/dist/es/shared/parseAst.js:392:41 ❯ error C:/Users/RUNNER~1/AppData/Local/Temp/tailwind-integrationsXXXXXXtjAcC7/node_modules/.pnpm/rollup@4.19.1/node_modules/rollup/dist/es/shared/parseAst.js:388:42 ❯ FileEmitter.emitFile C:/Users/RUNNER~1/AppData/Local/Temp/tailwind-integrationsXXXXXXtjAcC7/node_modules/.pnpm/rollup@4.19.1/node_modules/rollup/dist/es/shared/node-entry.js:19370:24 ❯ Object.generateBundle C:/Users/RUNNER~1/AppData/Local/Temp/tailwind-integrationsXXXXXXtjAcC7/node_modules/.pnpm/vite@5.3.5_lightningcss@1.25.1/node_modules/vite/dist/node/chunks/dep-mCdpKltl.js:35560:14 ❯ Bundle.generate C:/Users/RUNNER~1/AppData/Local/Temp/tailwind-integrationsXXXXXXtjAcC7/node_modules/.pnpm/rollup@4.19.1/node_modules/rollup/dist/es/shared/node-entry.js:18245:9 ❯ ../async file:/C:/Users/RUNNER~1/AppData/Local/Temp/tailwind-integrationsXXXXXXtjAcC7/node_modules/.pnpm/rollup@4.19.1/node_modules/rollup/dist/es/shared/node-entry.js:20784:27 ❯ catchUnfinishedHookActions C:/Users/RUNNER~1/AppData/Local/Temp/tailwind-integrationsXXXXXXtjAcC7/node_modules/.pnpm/rollup@4.19.1/node_modules/rollup/dist/es/shared/node-entry.js:20211:16 ❯ build C:/Users/RUNNER~1/AppData/Local/Temp/tailwind-integrationsXXXXXXtjAcC7/node_modules/.pnpm/vite@5.3.5_lightningcss@1.25.1/node_modules/vite/dist/node/chunks/dep-mCdpKltl.js:65125:16 ❯ checkExecSyncError ../node:child_process:890:11 ❯ Proxy.execSync ../node:child_process:962:15 ❯ test vite/index.test.ts:124:5 ❯ vite/index.test.ts:74:11 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { status: 1, signal: null, output: [ null, { type: 'Buffer', data: [ 10, 62, 32, 118, 105, 116, 101, 45, 101, 120, 97, 109, 112, 108, 101, 64, 32, 98, 117, 105, 108, 100, 32, 67, 58, 92, 85, 11

let [[_, content]] = await fs.glob('dist/**/*.css')

expect(stripTailwindComment(content)).toMatchInlineSnapshot(`
for (let [path, content] of await fs.glob('dist/**/*.css')) {
expect(path).toMatch(/\.css$/)
expect(stripTailwindComment(content)).toMatchInlineSnapshot(`
".m-2 {
margin: var(--spacing-2, .5rem);
}
Expand All @@ -134,5 +134,6 @@ test(
text-decoration-line: underline;
}"
`)
}
},
)

0 comments on commit 4ca70bc

Please sign in to comment.