You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import { test } from "@playwright/experimental-ct-react";
import { TextField } from "@mui/material";
test("this test causes vite/rollup failure", async ({ mount }) => {
await mount();
});
Expected behavior
Test builds and executes
Actual behavior
Error: [vite]: Rollup failed to resolve import "undefined" from "/Users/nathanpanchout/Documents/Societe/Clients/FunMooc/joanie/src/frontend/admin/playwright/index.tsx".
This is most likely unintended because it can break your application at runtime.
If you do want to externalize this module explicitly add it to
`build.rollupOptions.external`
at viteWarn (/Users/nathanpanchout/Documents/Societe/Clients/FunMooc/joanie/src/frontend/admin/node_modules/vite/dist/node/chunks/dep-DkOS1hkm.js:67620:27)
at onwarn (/Users/nathanpanchout/Documents/Societe/Clients/FunMooc/joanie/src/frontend/admin/node_modules/@vitejs/plugin-react/dist/index.mjs:250:9)
at onRollupWarning (/Users/nathanpanchout/Documents/Societe/Clients/FunMooc/joanie/src/frontend/admin/node_modules/vite/dist/node/chunks/dep-DkOS1hkm.js:67645:9)
at onwarn (/Users/nathanpanchout/Documents/Societe/Clients/FunMooc/joanie/src/frontend/admin/node_modules/vite/dist/node/chunks/dep-DkOS1hkm.js:67364:13)
at /Users/nathanpanchout/Documents/Societe/Clients/FunMooc/joanie/src/frontend/admin/node_modules/rollup/dist/es/shared/node-entry.js:18351:13
at Object.logger (/Users/nathanpanchout/Documents/Societe/Clients/FunMooc/joanie/src/frontend/admin/node_modules/rollup/dist/es/shared/node-entry.js:19999:9)
at ModuleLoader.handleInvalidResolvedId (/Users/nathanpanchout/Documents/Societe/Clients/FunMooc/joanie/src/frontend/admin/node_modules/rollup/dist/es/shared/node-entry.js:18941:26)
at ModuleLoader.resolveDynamicImport (/Users/nathanpanchout/Documents/Societe/Clients/FunMooc/joanie/src/frontend/admin/node_modules/rollup/dist/es/shared/node-entry.js:18999:58)
at /Users/nathanpanchout/Documents/Societe/Clients/FunMooc/joanie/src/frontend/admin/node_modules/rollup/dist/es/shared/node-entry.js:18886:32
Version
1.43.1
Steps to reproduce
import { test } from "@playwright/experimental-ct-react";
import { TextField } from "@mui/material";
test("this test causes vite/rollup failure", async ({ mount }) => {
await mount();
});
Expected behavior
Test builds and executes
Actual behavior
Additional context
It's exactly the same problem as here: #29854.
However even with 1.43.1, the problem still seems to persist on my side, sorry
Environment
The text was updated successfully, but these errors were encountered: