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
When I run npm run test-ct I get following error:
~/pw-nx$ npm run test-ct
@pw-nx/source@0.0.0 test-ct
playwright test -c playwright-ct.config.ts
Error: Package subpath './lib/mount' is not defined by "exports" in /home/alex-aveva/pw-nx/node_modules/@playwright/test/package.json
at new NodeError (node:internal/errors:387:5)
at throwExportsNotFound (node:internal/modules/esm/resolve:365:9)
at packageExportsResolve (node:internal/modules/esm/resolve:649:3)
at resolveExports (node:internal/modules/cjs/loader:554:36)
at Function.Module._findPath (node:internal/modules/cjs/loader:594:31)
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1012:27)
at Function.resolveFilename (/home/alex-aveva/pw-nx/node_modules/@playwright/test/lib/transform/transform.js:191:36)
at Function.Module._load (node:internal/modules/cjs/loader:871:27)
at Module.require (node:internal/modules/cjs/loader:1098:19)
at require (node:internal/modules/cjs/helpers:108:18)
at Object. (/home/alex-aveva/pw-nx/node_modules/@jscutlery/playwright-ct-angular/index.cjs:6:13)
at Module._compile (node:internal/modules/cjs/loader:1196:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1250:10)
at Object.i..ut._extensions. (/home/alex-aveva/pw-nx/node_modules/@playwright/test/lib/utilsBundleImpl.js:16:1010)
at Module.load (node:internal/modules/cjs/loader:1074:32)
at Function.Module._load (node:internal/modules/cjs/loader:909:12)
at Module.require (node:internal/modules/cjs/loader:1098:19)
at require (node:internal/modules/cjs/helpers:108:18)
at Object. (/home/alex-aveva/pw-nx/playwright-ct.config.ts:2:1)
at Module._compile (node:internal/modules/cjs/loader:1196:14)
at Module.f._compile (/home/alex-aveva/pw-nx/node_modules/@playwright/test/lib/utilsBundleImpl.js:16:994)
at Module._extensions..js (node:internal/modules/cjs/loader:1250:10)
at Object.i..ut._extensions. (/home/alex-aveva/pw-nx/node_modules/@playwright/test/lib/utilsBundleImpl.js:16:1010)
at Module.load (node:internal/modules/cjs/loader:1074:32)
at Function.Module._load (node:internal/modules/cjs/loader:909:12)
at Module.require (node:internal/modules/cjs/loader:1098:19)
at require (node:internal/modules/cjs/helpers:108:18)
at requireOrImport (/home/alex-aveva/pw-nx/node_modules/@playwright/test/lib/transform/transform.js:172:20)
at requireOrImportDefaultObject (/home/alex-aveva/pw-nx/node_modules/@playwright/test/lib/common/configLoader.js:83:53)
at ConfigLoader.loadConfigFile (/home/alex-aveva/pw-nx/node_modules/@playwright/test/lib/common/configLoader.js:56:26)
at runTests (/home/alex-aveva/pw-nx/node_modules/@playwright/test/lib/cli.js:120:55)
at qr. (/home/alex-aveva/pw-nx/node_modules/@playwright/test/lib/cli.js:40:7) {
code: 'ERR_PACKAGE_PATH_NOT_EXPORTED'
}
Wonder what I'm missing
The text was updated successfully, but these errors were encountered:
Hello,
I'm trying to evaluate possibility of using playwright component testing.
Created fresh angular project using
npx create-nx-workspace <my-project-name>
and attempted to addplaywright-ct-angular
as described at https://github.com/jscutlery/devkit/tree/main/packages/playwright-ct-angular , here's my exact stepsplaywright-ct.config.ts
When I run
npm run test-ct
I get following error:~/pw-nx$ npm run test-ct
Error: Package subpath './lib/mount' is not defined by "exports" in /home/alex-aveva/pw-nx/node_modules/@playwright/test/package.json
at new NodeError (node:internal/errors:387:5)
at throwExportsNotFound (node:internal/modules/esm/resolve:365:9)
at packageExportsResolve (node:internal/modules/esm/resolve:649:3)
at resolveExports (node:internal/modules/cjs/loader:554:36)
at Function.Module._findPath (node:internal/modules/cjs/loader:594:31)
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1012:27)
at Function.resolveFilename (/home/alex-aveva/pw-nx/node_modules/@playwright/test/lib/transform/transform.js:191:36)
at Function.Module._load (node:internal/modules/cjs/loader:871:27)
at Module.require (node:internal/modules/cjs/loader:1098:19)
at require (node:internal/modules/cjs/helpers:108:18)
at Object. (/home/alex-aveva/pw-nx/node_modules/@jscutlery/playwright-ct-angular/index.cjs:6:13)
at Module._compile (node:internal/modules/cjs/loader:1196:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1250:10)
at Object.i..ut._extensions. (/home/alex-aveva/pw-nx/node_modules/@playwright/test/lib/utilsBundleImpl.js:16:1010)
at Module.load (node:internal/modules/cjs/loader:1074:32)
at Function.Module._load (node:internal/modules/cjs/loader:909:12)
at Module.require (node:internal/modules/cjs/loader:1098:19)
at require (node:internal/modules/cjs/helpers:108:18)
at Object. (/home/alex-aveva/pw-nx/playwright-ct.config.ts:2:1)
at Module._compile (node:internal/modules/cjs/loader:1196:14)
at Module.f._compile (/home/alex-aveva/pw-nx/node_modules/@playwright/test/lib/utilsBundleImpl.js:16:994)
at Module._extensions..js (node:internal/modules/cjs/loader:1250:10)
at Object.i..ut._extensions. (/home/alex-aveva/pw-nx/node_modules/@playwright/test/lib/utilsBundleImpl.js:16:1010)
at Module.load (node:internal/modules/cjs/loader:1074:32)
at Function.Module._load (node:internal/modules/cjs/loader:909:12)
at Module.require (node:internal/modules/cjs/loader:1098:19)
at require (node:internal/modules/cjs/helpers:108:18)
at requireOrImport (/home/alex-aveva/pw-nx/node_modules/@playwright/test/lib/transform/transform.js:172:20)
at requireOrImportDefaultObject (/home/alex-aveva/pw-nx/node_modules/@playwright/test/lib/common/configLoader.js:83:53)
at ConfigLoader.loadConfigFile (/home/alex-aveva/pw-nx/node_modules/@playwright/test/lib/common/configLoader.js:56:26)
at runTests (/home/alex-aveva/pw-nx/node_modules/@playwright/test/lib/cli.js:120:55)
at qr. (/home/alex-aveva/pw-nx/node_modules/@playwright/test/lib/cli.js:40:7) {
code: 'ERR_PACKAGE_PATH_NOT_EXPORTED'
}
Wonder what I'm missing
The text was updated successfully, but these errors were encountered: