Vite: Use Vite resolvers for CSS and JS files #5222
Annotations
10 errors
vite/config.test.ts > Config files (CJS, dev mode):
integrations/vite/config.test.ts#L190
AssertionError: expected '\n\n <!DOCTYPE html>\n …' to contain '.text-primary'
- Expected
+ Received
- .text-primary
+
+
+ <!DOCTYPE html>
+ <html lang="en">
+ <head>
+ <meta charset="UTF-8" />
+ <title>Error</title>
+ <script type="module">
+ const error = {"message":"Could not resolve './theme.css' from '/tmp/tailwind-integrationsJ23Rol/node_modules/.pnpm/tailwindcss@file+..+..+home+runner+work+tailwindcss+tailwindcss+dist+tailwindcss.tgz/node_modules/tailwindcss'","stack":" at fe (file:///tmp/tailwind-integrationsJ23Rol/node_modules/.pnpm/@tailwindcss+node@file+..+..+home+runner+work+tailwindcss+tailwindcss+dist+tailwindcss-node.tgz/node_modules/@tailwindcss/node/dist/index.mjs:10:3927)\n at async loadStylesheet (file:///tmp/tailwind-integrationsJ23Rol/node_modules/.pnpm/@tailwindcss+node@file+..+..+home+runner+work+tailwindcss+tailwindcss+dist+tailwindcss-node.tgz/node_modules/@tailwindcss/node/dist/index.mjs:10:2953)\n at async file:///tmp/tailwind-integrationsJ23Rol/node_modules/.pnpm/tailwindcss@file+..+..+home+runner+work+tailwindcss+tailwindcss+dist+tailwindcss.tgz/node_modules/tailwindcss/dist/lib.mjs:12:108759\n at async Promise.all (index 0)\n at async We (file:///tmp/tailwind-integrationsJ23Rol/node_modules/.pnpm/tailwindcss@file+..+..+home+runner+work+tailwindcss+tailwindcss+dist+tailwindcss.tgz/node_modules/tailwindcss/dist/lib.mjs:12:108875)\n at async file:///tmp/tailwind-integrationsJ23Rol/node_modules/.pnpm/tailwindcss@file+..+..+home+runner+work+tailwindcss+tailwindcss+dist+tailwindcss.tgz/node_modules/tailwindcss/dist/lib.mjs:12:108788\n at async Promise.all (index 0)\n at async We (file:///tmp/tailwind-integrationsJ23Rol/node_modules/.pnpm/tailwindcss@file+..+..+home+runner+work+tailwindcss+tailwindcss+dist+tailwindcss.tgz/node_modules/tailwindcss/dist/lib.mjs:12:108875)\n at async ur (file:///tmp/tailwind-integrationsJ23Rol/node_modules/.pnpm/tailwindcss@file+..+..+home+runner+work+tailwindcss+tailwindcss+dist+tailwindcss.tgz/node_modules/tailwindcss/dist/lib.mjs:24:548)\n at async Uo (file:///tmp/tailwind-integrationsJ23Rol/node_modules/.pnpm/tailwindcss@file+..+..+home+runner+work+tailwindcss+tailwindcss+dist+tailwindcss.tgz/node_modules/tailwindcss/dist/lib.mjs:28:759)","id":"/tmp/tailwind-integrationsJ23Rol/src/index.css?direct","frame":"","plugin":"@tailwindcss/vite:generate:serve","pluginCode":"@import 'tailwindcss';\n@config '../tailwind.config.cjs';"}
+ try {
+ const { ErrorOverlay } = await import("/@vite/client")
+ document.body.appendChild(new ErrorOverlay(error))
+ } catch {
+ const h = (tag, text) => {
+ const el = document.createElement(tag)
+ el.textContent = text
+ return el
+ }
+ document.body.appendChild(h('h1', 'Internal Server Error'))
+ document.body.appendChild(h('h2', error.message))
+ document.body.appendChild(h('pre', error.stack))
+ document.body.appendChild(h('p', '(Error overlay failed to load)'))
+ }
+ </script>
+ </head>
+ <body>
+ </body>
+ </html>
+
❯ vite/config.test.ts:190:19
❯ Module.retryAssertion utils.ts:636:14
❯ vite/config.test.ts:188:5
❯ utils.ts:444:14
|
vite/config.test.ts > Config files (CJS, dev mode):
integrations/vite/config.test.ts#L190
AssertionError: expected '\n\n <!DOCTYPE html>\n …' to contain '.text-primary'
- Expected
+ Received
- .text-primary
+
+
+ <!DOCTYPE html>
+ <html lang="en">
+ <head>
+ <meta charset="UTF-8" />
+ <title>Error</title>
+ <script type="module">
+ const error = {"message":"Could not resolve './theme.css' from '/tmp/tailwind-integrationshSAonr/node_modules/.pnpm/tailwindcss@file+..+..+home+runner+work+tailwindcss+tailwindcss+dist+tailwindcss.tgz/node_modules/tailwindcss'","stack":" at fe (file:///tmp/tailwind-integrationshSAonr/node_modules/.pnpm/@tailwindcss+node@file+..+..+home+runner+work+tailwindcss+tailwindcss+dist+tailwindcss-node.tgz/node_modules/@tailwindcss/node/dist/index.mjs:10:3927)\n at async loadStylesheet (file:///tmp/tailwind-integrationshSAonr/node_modules/.pnpm/@tailwindcss+node@file+..+..+home+runner+work+tailwindcss+tailwindcss+dist+tailwindcss-node.tgz/node_modules/@tailwindcss/node/dist/index.mjs:10:2953)\n at async file:///tmp/tailwind-integrationshSAonr/node_modules/.pnpm/tailwindcss@file+..+..+home+runner+work+tailwindcss+tailwindcss+dist+tailwindcss.tgz/node_modules/tailwindcss/dist/lib.mjs:12:108759\n at async Promise.all (index 0)\n at async We (file:///tmp/tailwind-integrationshSAonr/node_modules/.pnpm/tailwindcss@file+..+..+home+runner+work+tailwindcss+tailwindcss+dist+tailwindcss.tgz/node_modules/tailwindcss/dist/lib.mjs:12:108875)\n at async file:///tmp/tailwind-integrationshSAonr/node_modules/.pnpm/tailwindcss@file+..+..+home+runner+work+tailwindcss+tailwindcss+dist+tailwindcss.tgz/node_modules/tailwindcss/dist/lib.mjs:12:108788\n at async Promise.all (index 0)\n at async We (file:///tmp/tailwind-integrationshSAonr/node_modules/.pnpm/tailwindcss@file+..+..+home+runner+work+tailwindcss+tailwindcss+dist+tailwindcss.tgz/node_modules/tailwindcss/dist/lib.mjs:12:108875)\n at async ur (file:///tmp/tailwind-integrationshSAonr/node_modules/.pnpm/tailwindcss@file+..+..+home+runner+work+tailwindcss+tailwindcss+dist+tailwindcss.tgz/node_modules/tailwindcss/dist/lib.mjs:24:548)\n at async Uo (file:///tmp/tailwind-integrationshSAonr/node_modules/.pnpm/tailwindcss@file+..+..+home+runner+work+tailwindcss+tailwindcss+dist+tailwindcss.tgz/node_modules/tailwindcss/dist/lib.mjs:28:759)","id":"/tmp/tailwind-integrationshSAonr/src/index.css?direct","frame":"","plugin":"@tailwindcss/vite:generate:serve","pluginCode":"@import 'tailwindcss';\n@config '../tailwind.config.cjs';"}
+ try {
+ const { ErrorOverlay } = await import("/@vite/client")
+ document.body.appendChild(new ErrorOverlay(error))
+ } catch {
+ const h = (tag, text) => {
+ const el = document.createElement(tag)
+ el.textContent = text
+ return el
+ }
+ document.body.appendChild(h('h1', 'Internal Server Error'))
+ document.body.appendChild(h('h2', error.message))
+ document.body.appendChild(h('pre', error.stack))
+ document.body.appendChild(h('p', '(Error overlay failed to load)'))
+ }
+ </script>
+ </head>
+ <body>
+ </body>
+ </html>
+
❯ vite/config.test.ts:190:19
❯ Module.retryAssertion utils.ts:636:14
❯ vite/config.test.ts:188:5
❯ utils.ts:444:14
|
vite/config.test.ts > Config files (CJS, dev mode):
integrations/vite/config.test.ts#L190
AssertionError: expected '\n\n <!DOCTYPE html>\n …' to contain '.text-primary'
- Expected
+ Received
- .text-primary
+
+
+ <!DOCTYPE html>
+ <html lang="en">
+ <head>
+ <meta charset="UTF-8" />
+ <title>Error</title>
+ <script type="module">
+ const error = {"message":"Could not resolve './theme.css' from '/tmp/tailwind-integrationsxa4ArC/node_modules/.pnpm/tailwindcss@file+..+..+home+runner+work+tailwindcss+tailwindcss+dist+tailwindcss.tgz/node_modules/tailwindcss'","stack":" at fe (file:///tmp/tailwind-integrationsxa4ArC/node_modules/.pnpm/@tailwindcss+node@file+..+..+home+runner+work+tailwindcss+tailwindcss+dist+tailwindcss-node.tgz/node_modules/@tailwindcss/node/dist/index.mjs:10:3927)\n at async loadStylesheet (file:///tmp/tailwind-integrationsxa4ArC/node_modules/.pnpm/@tailwindcss+node@file+..+..+home+runner+work+tailwindcss+tailwindcss+dist+tailwindcss-node.tgz/node_modules/@tailwindcss/node/dist/index.mjs:10:2953)\n at async file:///tmp/tailwind-integrationsxa4ArC/node_modules/.pnpm/tailwindcss@file+..+..+home+runner+work+tailwindcss+tailwindcss+dist+tailwindcss.tgz/node_modules/tailwindcss/dist/lib.mjs:12:108759\n at async Promise.all (index 0)\n at async We (file:///tmp/tailwind-integrationsxa4ArC/node_modules/.pnpm/tailwindcss@file+..+..+home+runner+work+tailwindcss+tailwindcss+dist+tailwindcss.tgz/node_modules/tailwindcss/dist/lib.mjs:12:108875)\n at async file:///tmp/tailwind-integrationsxa4ArC/node_modules/.pnpm/tailwindcss@file+..+..+home+runner+work+tailwindcss+tailwindcss+dist+tailwindcss.tgz/node_modules/tailwindcss/dist/lib.mjs:12:108788\n at async Promise.all (index 0)\n at async We (file:///tmp/tailwind-integrationsxa4ArC/node_modules/.pnpm/tailwindcss@file+..+..+home+runner+work+tailwindcss+tailwindcss+dist+tailwindcss.tgz/node_modules/tailwindcss/dist/lib.mjs:12:108875)\n at async ur (file:///tmp/tailwind-integrationsxa4ArC/node_modules/.pnpm/tailwindcss@file+..+..+home+runner+work+tailwindcss+tailwindcss+dist+tailwindcss.tgz/node_modules/tailwindcss/dist/lib.mjs:24:548)\n at async Uo (file:///tmp/tailwind-integrationsxa4ArC/node_modules/.pnpm/tailwindcss@file+..+..+home+runner+work+tailwindcss+tailwindcss+dist+tailwindcss.tgz/node_modules/tailwindcss/dist/lib.mjs:28:759)","id":"/tmp/tailwind-integrationsxa4ArC/src/index.css?direct","frame":"","plugin":"@tailwindcss/vite:generate:serve","pluginCode":"@import 'tailwindcss';\n@config '../tailwind.config.cjs';"}
+ try {
+ const { ErrorOverlay } = await import("/@vite/client")
+ document.body.appendChild(new ErrorOverlay(error))
+ } catch {
+ const h = (tag, text) => {
+ const el = document.createElement(tag)
+ el.textContent = text
+ return el
+ }
+ document.body.appendChild(h('h1', 'Internal Server Error'))
+ document.body.appendChild(h('h2', error.message))
+ document.body.appendChild(h('pre', error.stack))
+ document.body.appendChild(h('p', '(Error overlay failed to load)'))
+ }
+ </script>
+ </head>
+ <body>
+ </body>
+ </html>
+
❯ vite/config.test.ts:190:19
❯ Module.retryAssertion utils.ts:636:14
❯ vite/config.test.ts:188:5
❯ utils.ts:444:14
|
vite/config.test.ts > Config files (ESM, dev mode):
integrations/vite/config.test.ts#L262
AssertionError: expected '\n\n <!DOCTYPE html>\n …' to contain '.text-primary'
- Expected
+ Received
- .text-primary
+
+
+ <!DOCTYPE html>
+ <html lang="en">
+ <head>
+ <meta charset="UTF-8" />
+ <title>Error</title>
+ <script type="module">
+ const error = {"message":"Could not resolve './theme.css' from '/tmp/tailwind-integrationsL03LWG/node_modules/.pnpm/tailwindcss@file+..+..+home+runner+work+tailwindcss+tailwindcss+dist+tailwindcss.tgz/node_modules/tailwindcss'","stack":" at fe (file:///tmp/tailwind-integrationsL03LWG/node_modules/.pnpm/@tailwindcss+node@file+..+..+home+runner+work+tailwindcss+tailwindcss+dist+tailwindcss-node.tgz/node_modules/@tailwindcss/node/dist/index.mjs:10:3927)\n at async loadStylesheet (file:///tmp/tailwind-integrationsL03LWG/node_modules/.pnpm/@tailwindcss+node@file+..+..+home+runner+work+tailwindcss+tailwindcss+dist+tailwindcss-node.tgz/node_modules/@tailwindcss/node/dist/index.mjs:10:2953)\n at async file:///tmp/tailwind-integrationsL03LWG/node_modules/.pnpm/tailwindcss@file+..+..+home+runner+work+tailwindcss+tailwindcss+dist+tailwindcss.tgz/node_modules/tailwindcss/dist/lib.mjs:12:108759\n at async Promise.all (index 0)\n at async We (file:///tmp/tailwind-integrationsL03LWG/node_modules/.pnpm/tailwindcss@file+..+..+home+runner+work+tailwindcss+tailwindcss+dist+tailwindcss.tgz/node_modules/tailwindcss/dist/lib.mjs:12:108875)\n at async file:///tmp/tailwind-integrationsL03LWG/node_modules/.pnpm/tailwindcss@file+..+..+home+runner+work+tailwindcss+tailwindcss+dist+tailwindcss.tgz/node_modules/tailwindcss/dist/lib.mjs:12:108788\n at async Promise.all (index 0)\n at async We (file:///tmp/tailwind-integrationsL03LWG/node_modules/.pnpm/tailwindcss@file+..+..+home+runner+work+tailwindcss+tailwindcss+dist+tailwindcss.tgz/node_modules/tailwindcss/dist/lib.mjs:12:108875)\n at async ur (file:///tmp/tailwind-integrationsL03LWG/node_modules/.pnpm/tailwindcss@file+..+..+home+runner+work+tailwindcss+tailwindcss+dist+tailwindcss.tgz/node_modules/tailwindcss/dist/lib.mjs:24:548)\n at async Uo (file:///tmp/tailwind-integrationsL03LWG/node_modules/.pnpm/tailwindcss@file+..+..+home+runner+work+tailwindcss+tailwindcss+dist+tailwindcss.tgz/node_modules/tailwindcss/dist/lib.mjs:28:759)","id":"/tmp/tailwind-integrationsL03LWG/src/index.css?direct","frame":"","plugin":"@tailwindcss/vite:generate:serve","pluginCode":"@import 'tailwindcss';\n@config '../tailwind.config.mjs';"}
+ try {
+ const { ErrorOverlay } = await import("/@vite/client")
+ document.body.appendChild(new ErrorOverlay(error))
+ } catch {
+ const h = (tag, text) => {
+ const el = document.createElement(tag)
+ el.textContent = text
+ return el
+ }
+ document.body.appendChild(h('h1', 'Internal Server Error'))
+ document.body.appendChild(h('h2', error.message))
+ document.body.appendChild(h('pre', error.stack))
+ document.body.appendChild(h('p', '(Error overlay failed to load)'))
+ }
+ </script>
+ </head>
+ <body>
+ </body>
+ </html>
+
❯ vite/config.test.ts:262:19
❯ Module.retryAssertion utils.ts:636:14
❯ vite/config.test.ts:260:5
❯ utils.ts:444:14
|
vite/config.test.ts > Config files (ESM, dev mode):
integrations/vite/config.test.ts#L262
AssertionError: expected '\n\n <!DOCTYPE html>\n …' to contain '.text-primary'
- Expected
+ Received
- .text-primary
+
+
+ <!DOCTYPE html>
+ <html lang="en">
+ <head>
+ <meta charset="UTF-8" />
+ <title>Error</title>
+ <script type="module">
+ const error = {"message":"Could not resolve './theme.css' from '/tmp/tailwind-integrations60l10B/node_modules/.pnpm/tailwindcss@file+..+..+home+runner+work+tailwindcss+tailwindcss+dist+tailwindcss.tgz/node_modules/tailwindcss'","stack":" at fe (file:///tmp/tailwind-integrations60l10B/node_modules/.pnpm/@tailwindcss+node@file+..+..+home+runner+work+tailwindcss+tailwindcss+dist+tailwindcss-node.tgz/node_modules/@tailwindcss/node/dist/index.mjs:10:3927)\n at async loadStylesheet (file:///tmp/tailwind-integrations60l10B/node_modules/.pnpm/@tailwindcss+node@file+..+..+home+runner+work+tailwindcss+tailwindcss+dist+tailwindcss-node.tgz/node_modules/@tailwindcss/node/dist/index.mjs:10:2953)\n at async file:///tmp/tailwind-integrations60l10B/node_modules/.pnpm/tailwindcss@file+..+..+home+runner+work+tailwindcss+tailwindcss+dist+tailwindcss.tgz/node_modules/tailwindcss/dist/lib.mjs:12:108759\n at async Promise.all (index 0)\n at async We (file:///tmp/tailwind-integrations60l10B/node_modules/.pnpm/tailwindcss@file+..+..+home+runner+work+tailwindcss+tailwindcss+dist+tailwindcss.tgz/node_modules/tailwindcss/dist/lib.mjs:12:108875)\n at async file:///tmp/tailwind-integrations60l10B/node_modules/.pnpm/tailwindcss@file+..+..+home+runner+work+tailwindcss+tailwindcss+dist+tailwindcss.tgz/node_modules/tailwindcss/dist/lib.mjs:12:108788\n at async Promise.all (index 0)\n at async We (file:///tmp/tailwind-integrations60l10B/node_modules/.pnpm/tailwindcss@file+..+..+home+runner+work+tailwindcss+tailwindcss+dist+tailwindcss.tgz/node_modules/tailwindcss/dist/lib.mjs:12:108875)\n at async ur (file:///tmp/tailwind-integrations60l10B/node_modules/.pnpm/tailwindcss@file+..+..+home+runner+work+tailwindcss+tailwindcss+dist+tailwindcss.tgz/node_modules/tailwindcss/dist/lib.mjs:24:548)\n at async Uo (file:///tmp/tailwind-integrations60l10B/node_modules/.pnpm/tailwindcss@file+..+..+home+runner+work+tailwindcss+tailwindcss+dist+tailwindcss.tgz/node_modules/tailwindcss/dist/lib.mjs:28:759)","id":"/tmp/tailwind-integrations60l10B/src/index.css?direct","frame":"","plugin":"@tailwindcss/vite:generate:serve","pluginCode":"@import 'tailwindcss';\n@config '../tailwind.config.mjs';"}
+ try {
+ const { ErrorOverlay } = await import("/@vite/client")
+ document.body.appendChild(new ErrorOverlay(error))
+ } catch {
+ const h = (tag, text) => {
+ const el = document.createElement(tag)
+ el.textContent = text
+ return el
+ }
+ document.body.appendChild(h('h1', 'Internal Server Error'))
+ document.body.appendChild(h('h2', error.message))
+ document.body.appendChild(h('pre', error.stack))
+ document.body.appendChild(h('p', '(Error overlay failed to load)'))
+ }
+ </script>
+ </head>
+ <body>
+ </body>
+ </html>
+
❯ vite/config.test.ts:262:19
❯ Module.retryAssertion utils.ts:636:14
❯ vite/config.test.ts:260:5
❯ utils.ts:444:14
|
vite/config.test.ts > Config files (ESM, dev mode):
integrations/vite/config.test.ts#L262
AssertionError: expected '\n\n <!DOCTYPE html>\n …' to contain '.text-primary'
- Expected
+ Received
- .text-primary
+
+
+ <!DOCTYPE html>
+ <html lang="en">
+ <head>
+ <meta charset="UTF-8" />
+ <title>Error</title>
+ <script type="module">
+ const error = {"message":"Could not resolve './theme.css' from '/tmp/tailwind-integrationsQNXzgf/node_modules/.pnpm/tailwindcss@file+..+..+home+runner+work+tailwindcss+tailwindcss+dist+tailwindcss.tgz/node_modules/tailwindcss'","stack":" at fe (file:///tmp/tailwind-integrationsQNXzgf/node_modules/.pnpm/@tailwindcss+node@file+..+..+home+runner+work+tailwindcss+tailwindcss+dist+tailwindcss-node.tgz/node_modules/@tailwindcss/node/dist/index.mjs:10:3927)\n at async loadStylesheet (file:///tmp/tailwind-integrationsQNXzgf/node_modules/.pnpm/@tailwindcss+node@file+..+..+home+runner+work+tailwindcss+tailwindcss+dist+tailwindcss-node.tgz/node_modules/@tailwindcss/node/dist/index.mjs:10:2953)\n at async file:///tmp/tailwind-integrationsQNXzgf/node_modules/.pnpm/tailwindcss@file+..+..+home+runner+work+tailwindcss+tailwindcss+dist+tailwindcss.tgz/node_modules/tailwindcss/dist/lib.mjs:12:108759\n at async Promise.all (index 0)\n at async We (file:///tmp/tailwind-integrationsQNXzgf/node_modules/.pnpm/tailwindcss@file+..+..+home+runner+work+tailwindcss+tailwindcss+dist+tailwindcss.tgz/node_modules/tailwindcss/dist/lib.mjs:12:108875)\n at async file:///tmp/tailwind-integrationsQNXzgf/node_modules/.pnpm/tailwindcss@file+..+..+home+runner+work+tailwindcss+tailwindcss+dist+tailwindcss.tgz/node_modules/tailwindcss/dist/lib.mjs:12:108788\n at async Promise.all (index 0)\n at async We (file:///tmp/tailwind-integrationsQNXzgf/node_modules/.pnpm/tailwindcss@file+..+..+home+runner+work+tailwindcss+tailwindcss+dist+tailwindcss.tgz/node_modules/tailwindcss/dist/lib.mjs:12:108875)\n at async ur (file:///tmp/tailwind-integrationsQNXzgf/node_modules/.pnpm/tailwindcss@file+..+..+home+runner+work+tailwindcss+tailwindcss+dist+tailwindcss.tgz/node_modules/tailwindcss/dist/lib.mjs:24:548)\n at async Uo (file:///tmp/tailwind-integrationsQNXzgf/node_modules/.pnpm/tailwindcss@file+..+..+home+runner+work+tailwindcss+tailwindcss+dist+tailwindcss.tgz/node_modules/tailwindcss/dist/lib.mjs:28:759)","id":"/tmp/tailwind-integrationsQNXzgf/src/index.css?direct","frame":"","plugin":"@tailwindcss/vite:generate:serve","pluginCode":"@import 'tailwindcss';\n@config '../tailwind.config.mjs';"}
+ try {
+ const { ErrorOverlay } = await import("/@vite/client")
+ document.body.appendChild(new ErrorOverlay(error))
+ } catch {
+ const h = (tag, text) => {
+ const el = document.createElement(tag)
+ el.textContent = text
+ return el
+ }
+ document.body.appendChild(h('h1', 'Internal Server Error'))
+ document.body.appendChild(h('h2', error.message))
+ document.body.appendChild(h('pre', error.stack))
+ document.body.appendChild(h('p', '(Error overlay failed to load)'))
+ }
+ </script>
+ </head>
+ <body>
+ </body>
+ </html>
+
❯ vite/config.test.ts:262:19
❯ Module.retryAssertion utils.ts:636:14
❯ vite/config.test.ts:260:5
❯ utils.ts:444:14
|
vite/index.test.ts > postcss > dev mode:
integrations/vite/index.test.ts#L175
AssertionError: expected '\n\n <!DOCTYPE html>\n …' to contain '.underline'
- Expected
+ Received
- .underline
+
+
+ <!DOCTYPE html>
+ <html lang="en">
+ <head>
+ <meta charset="UTF-8" />
+ <title>Error</title>
+ <script type="module">
+ const error = {"message":"Could not resolve '../tailwind.config.js' from '/tmp/tailwind-integrationsjZHEKN/project-a/src'","stack":" at ce (file:///tmp/tailwind-integrationsjZHEKN/node_modules/.pnpm/@tailwindcss+node@file+..+..+home+runner+work+tailwindcss+tailwindcss+dist+tailwindcss-node.tgz/node_modules/@tailwindcss/node/dist/index.mjs:10:3689)\n at async file:///tmp/tailwind-integrationsjZHEKN/node_modules/.pnpm/tailwindcss@file+..+..+home+runner+work+tailwindcss+tailwindcss+dist+tailwindcss.tgz/node_modules/tailwindcss/dist/lib.mjs:20:752\n at async Promise.all (index 0)\n at async Promise.all (index 0)\n at async sr (file:///tmp/tailwind-integrationsjZHEKN/node_modules/.pnpm/tailwindcss@file+..+..+home+runner+work+tailwindcss+tailwindcss+dist+tailwindcss.tgz/node_modules/tailwindcss/dist/lib.mjs:20:686)\n at async ur (file:///tmp/tailwind-integrationsjZHEKN/node_modules/.pnpm/tailwindcss@file+..+..+home+runner+work+tailwindcss+tailwindcss+dist+tailwindcss.tgz/node_modules/tailwindcss/dist/lib.mjs:28:94)\n at async Uo (file:///tmp/tailwind-integrationsjZHEKN/node_modules/.pnpm/tailwindcss@file+..+..+home+runner+work+tailwindcss+tailwindcss+dist+tailwindcss.tgz/node_modules/tailwindcss/dist/lib.mjs:28:759)\n at async Je (file:///tmp/tailwind-integrationsjZHEKN/node_modules/.pnpm/@tailwindcss+node@file+..+..+home+runner+work+tailwindcss+tailwindcss+dist+tailwindcss-node.tgz/node_modules/@tailwindcss/node/dist/index.mjs:10:2860)\n at async C.generate (file:///tmp/tailwind-integrationsjZHEKN/node_modules/.pnpm/@tailwindcss+vite@file+..+..+home+runner+work+tailwindcss+tailwindcss+dist+tailwindcss-vite.t_kv2ao3b63wexxjevcn4ucilmra/node_modules/@tailwindcss/vite/dist/index.mjs:1:4635)\n at async TransformPluginContext.transform (file:///tmp/tailwind-integrationsjZHEKN/node_modules/.pnpm/@tailwindcss+vite@file+..+..+home+runner+work+tailwindcss+tailwindcss+dist+tailwindcss-vite.t_kv2ao3b63wexxjevcn4ucilmra/node_modules/@tailwindcss/vite/dist/index.mjs:1:2657)","id":"/tmp/tailwind-integrationsjZHEKN/project-a/src/index.css?direct","frame":"","plugin":"@tailwindcss/vite:generate:serve","pluginCode":"@import 'tailwindcss/theme' theme(reference);\n@import 'tailwindcss/utilities';\n@config '../tailwind.config.js';\n@source '../../project-b/src/**/*.html';"}
+ try {
+ const { ErrorOverlay } = await import("/@vite/client")
+ document.body.appendChild(new ErrorOverlay(error))
+ } catch {
+ const h = (tag, text) => {
+ const el = document.createElement(tag)
+ el.textContent = text
+ return el
+ }
+ document.body.appendChild(h('h1', 'Internal Server Error'))
+ document.body.appendChild(h('h2', error.message))
+ document.body.appendChild(h('pre', error.stack))
+ document.body.appendChild(h('p', '(Error overlay failed to load)'))
+ }
+ </script>
+ </head>
+ <body>
+ </body>
+ </html>
+
❯ vite/index.test.ts:175:26
❯ Module.retryAssertion utils.ts:636:14
❯ vite/index.test.ts:173:9
❯ utils.ts:444:14
|
vite/index.test.ts > postcss > dev mode:
integrations/vite/index.test.ts#L175
AssertionError: expected '\n\n <!DOCTYPE html>\n …' to contain '.underline'
- Expected
+ Received
- .underline
+
+
+ <!DOCTYPE html>
+ <html lang="en">
+ <head>
+ <meta charset="UTF-8" />
+ <title>Error</title>
+ <script type="module">
+ const error = {"message":"Could not resolve '../tailwind.config.js' from '/tmp/tailwind-integrationsEIBcvp/project-a/src'","stack":" at ce (file:///tmp/tailwind-integrationsEIBcvp/node_modules/.pnpm/@tailwindcss+node@file+..+..+home+runner+work+tailwindcss+tailwindcss+dist+tailwindcss-node.tgz/node_modules/@tailwindcss/node/dist/index.mjs:10:3689)\n at async file:///tmp/tailwind-integrationsEIBcvp/node_modules/.pnpm/tailwindcss@file+..+..+home+runner+work+tailwindcss+tailwindcss+dist+tailwindcss.tgz/node_modules/tailwindcss/dist/lib.mjs:20:752\n at async Promise.all (index 0)\n at async Promise.all (index 0)\n at async sr (file:///tmp/tailwind-integrationsEIBcvp/node_modules/.pnpm/tailwindcss@file+..+..+home+runner+work+tailwindcss+tailwindcss+dist+tailwindcss.tgz/node_modules/tailwindcss/dist/lib.mjs:20:686)\n at async ur (file:///tmp/tailwind-integrationsEIBcvp/node_modules/.pnpm/tailwindcss@file+..+..+home+runner+work+tailwindcss+tailwindcss+dist+tailwindcss.tgz/node_modules/tailwindcss/dist/lib.mjs:28:94)\n at async Uo (file:///tmp/tailwind-integrationsEIBcvp/node_modules/.pnpm/tailwindcss@file+..+..+home+runner+work+tailwindcss+tailwindcss+dist+tailwindcss.tgz/node_modules/tailwindcss/dist/lib.mjs:28:759)\n at async Je (file:///tmp/tailwind-integrationsEIBcvp/node_modules/.pnpm/@tailwindcss+node@file+..+..+home+runner+work+tailwindcss+tailwindcss+dist+tailwindcss-node.tgz/node_modules/@tailwindcss/node/dist/index.mjs:10:2860)\n at async C.generate (file:///tmp/tailwind-integrationsEIBcvp/node_modules/.pnpm/@tailwindcss+vite@file+..+..+home+runner+work+tailwindcss+tailwindcss+dist+tailwindcss-vite.t_kv2ao3b63wexxjevcn4ucilmra/node_modules/@tailwindcss/vite/dist/index.mjs:1:4635)\n at async TransformPluginContext.transform (file:///tmp/tailwind-integrationsEIBcvp/node_modules/.pnpm/@tailwindcss+vite@file+..+..+home+runner+work+tailwindcss+tailwindcss+dist+tailwindcss-vite.t_kv2ao3b63wexxjevcn4ucilmra/node_modules/@tailwindcss/vite/dist/index.mjs:1:2657)","id":"/tmp/tailwind-integrationsEIBcvp/project-a/src/index.css?direct","frame":"","plugin":"@tailwindcss/vite:generate:serve","pluginCode":"@import 'tailwindcss/theme' theme(reference);\n@import 'tailwindcss/utilities';\n@config '../tailwind.config.js';\n@source '../../project-b/src/**/*.html';"}
+ try {
+ const { ErrorOverlay } = await import("/@vite/client")
+ document.body.appendChild(new ErrorOverlay(error))
+ } catch {
+ const h = (tag, text) => {
+ const el = document.createElement(tag)
+ el.textContent = text
+ return el
+ }
+ document.body.appendChild(h('h1', 'Internal Server Error'))
+ document.body.appendChild(h('h2', error.message))
+ document.body.appendChild(h('pre', error.stack))
+ document.body.appendChild(h('p', '(Error overlay failed to load)'))
+ }
+ </script>
+ </head>
+ <body>
+ </body>
+ </html>
+
❯ vite/index.test.ts:175:26
❯ Module.retryAssertion utils.ts:636:14
❯ vite/index.test.ts:173:9
❯ utils.ts:444:14
|
vite/index.test.ts > postcss > dev mode:
integrations/vite/index.test.ts#L175
AssertionError: expected '\n\n <!DOCTYPE html>\n …' to contain '.underline'
- Expected
+ Received
- .underline
+
+
+ <!DOCTYPE html>
+ <html lang="en">
+ <head>
+ <meta charset="UTF-8" />
+ <title>Error</title>
+ <script type="module">
+ const error = {"message":"Could not resolve '../tailwind.config.js' from '/tmp/tailwind-integrationsZndnNh/project-a/src'","stack":" at ce (file:///tmp/tailwind-integrationsZndnNh/node_modules/.pnpm/@tailwindcss+node@file+..+..+home+runner+work+tailwindcss+tailwindcss+dist+tailwindcss-node.tgz/node_modules/@tailwindcss/node/dist/index.mjs:10:3689)\n at async file:///tmp/tailwind-integrationsZndnNh/node_modules/.pnpm/tailwindcss@file+..+..+home+runner+work+tailwindcss+tailwindcss+dist+tailwindcss.tgz/node_modules/tailwindcss/dist/lib.mjs:20:752\n at async Promise.all (index 0)\n at async Promise.all (index 0)\n at async sr (file:///tmp/tailwind-integrationsZndnNh/node_modules/.pnpm/tailwindcss@file+..+..+home+runner+work+tailwindcss+tailwindcss+dist+tailwindcss.tgz/node_modules/tailwindcss/dist/lib.mjs:20:686)\n at async ur (file:///tmp/tailwind-integrationsZndnNh/node_modules/.pnpm/tailwindcss@file+..+..+home+runner+work+tailwindcss+tailwindcss+dist+tailwindcss.tgz/node_modules/tailwindcss/dist/lib.mjs:28:94)\n at async Uo (file:///tmp/tailwind-integrationsZndnNh/node_modules/.pnpm/tailwindcss@file+..+..+home+runner+work+tailwindcss+tailwindcss+dist+tailwindcss.tgz/node_modules/tailwindcss/dist/lib.mjs:28:759)\n at async Je (file:///tmp/tailwind-integrationsZndnNh/node_modules/.pnpm/@tailwindcss+node@file+..+..+home+runner+work+tailwindcss+tailwindcss+dist+tailwindcss-node.tgz/node_modules/@tailwindcss/node/dist/index.mjs:10:2860)\n at async C.generate (file:///tmp/tailwind-integrationsZndnNh/node_modules/.pnpm/@tailwindcss+vite@file+..+..+home+runner+work+tailwindcss+tailwindcss+dist+tailwindcss-vite.t_kv2ao3b63wexxjevcn4ucilmra/node_modules/@tailwindcss/vite/dist/index.mjs:1:4635)\n at async TransformPluginContext.transform (file:///tmp/tailwind-integrationsZndnNh/node_modules/.pnpm/@tailwindcss+vite@file+..+..+home+runner+work+tailwindcss+tailwindcss+dist+tailwindcss-vite.t_kv2ao3b63wexxjevcn4ucilmra/node_modules/@tailwindcss/vite/dist/index.mjs:1:2657)","id":"/tmp/tailwind-integrationsZndnNh/project-a/src/index.css?direct","frame":"","plugin":"@tailwindcss/vite:generate:serve","pluginCode":"@import 'tailwindcss/theme' theme(reference);\n@import 'tailwindcss/utilities';\n@config '../tailwind.config.js';\n@source '../../project-b/src/**/*.html';"}
+ try {
+ const { ErrorOverlay } = await import("/@vite/client")
+ document.body.appendChild(new ErrorOverlay(error))
+ } catch {
+ const h = (tag, text) => {
+ const el = document.createElement(tag)
+ el.textContent = text
+ return el
+ }
+ document.body.appendChild(h('h1', 'Internal Server Error'))
+ document.body.appendChild(h('h2', error.message))
+ document.body.appendChild(h('pre', error.stack))
+ document.body.appendChild(h('p', '(Error overlay failed to load)'))
+ }
+ </script>
+ </head>
+ <body>
+ </body>
+ </html>
+
❯ vite/index.test.ts:175:26
❯ Module.retryAssertion utils.ts:636:14
❯ vite/index.test.ts:173:9
❯ utils.ts:444:14
|
vite/index.test.ts > postcss > watch mode:
integrations/vite/index.test.ts#L328
AssertionError: expected [] to have a length of 1 but got +0
- Expected
+ Received
- 1
+ 0
❯ vite/index.test.ts:328:25
❯ Module.retryAssertion utils.ts:636:14
❯ vite/index.test.ts:326:9
❯ utils.ts:444:14
|