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
I updated to 1.47.0 and now my playwright tests are complaining:
Error: Cannot find package '~' imported from /Users/me/project/.playwright/e2e/things.spec.ts
It's a remix project and remix uses ~ as the prefix, which is set in the tsconfig.
This was working just fine in the previous version. Something is broken now.
import{expect,test}from'@playwright/test';importlanguagesfrom'~/languages';test('things can be created, updated, and deleted',async({browser})=>{constcontext=awaitbrowser.newContext({extraHTTPHeaders: {'Accept-Language': 'en',},});awaitcontext.clearCookies();constpage=awaitcontext.newPage();awaitpage.goto('/things');awaitexpect(page).toHaveURL('/things');awaitexpect(page).toHaveTitle(languages.en.pages.things.meta.title);awaitexpect(page.getByTitle(/Thing/)).toHaveCount(2);awaitcontext.close();});
@stevensacks Could you please share a full repro? We need the project structure, package.json and tsconfig.json at least to make sure we understand your setup.
Version
1.47.0
Steps to reproduce
I updated to 1.47.0 and now my playwright tests are complaining:
It's a remix project and remix uses
~
as the prefix, which is set in the tsconfig.This was working just fine in the previous version. Something is broken now.
Expected behavior
Expect playwright to honor the tsconfig alias.
Actual behavior
Complains that it can't find a package.
Rolling back to
1.46.1
fixes the issue.Additional context
No response
Environment
The text was updated successfully, but these errors were encountered: