Rayrun
← Back to Discord Forum

Component testing issue with Vite "rollup failed to resolve import"

tenacious_beagle_27655posted in #help-playwright
Open in Discord
tenacious_beagle_27655

Hi all,
I'm trying to get started with component testing but I getting the issue below:

"Running 3 tests using 3 workers

vite v4.4.9 building for production... ✓ 3 modules transformed. ✓ built in 153ms [vite]: Rollup failed to resolve import "react" from "C:/Users/.../playwright_componet_testing/playwright/index.jsx". 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.Error: [vite]: Rollup failed to resolve import "react" from "C:/Users/.../playwright_componet_testing/playwright/index.jsx". 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." Any ideas what can be wrong? Thank you in advance

This thread is trying to answer question "What could be causing the 'Rollup failed to resolve import' error in Vite when trying to start component testing?"

0 replies

Related Discord Threads

TwitterGitHubLinkedIn
AboutQuestionsDiscord ForumBrowser ExtensionTagsQA Jobs

Rayrun is a community for QA engineers. I am constantly looking for new ways to add value to people learning Playwright and other browser automation frameworks. If you have feedback, email luc@ray.run.