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
{{ message }}
Repository navigation
component-testing-examples/tree/main/lit-typescript-vite doesnt work when using pnpm #29
This example fails to run due to the following error when installing modules using pnpm
[0-3] Error: Test failed due to following error(s):
- index.js?v=e55fe16c: Uncaught SyntaxError: The requested module '/node_modules/.pnpm/grapheme-splitter@1.0.4/node_modules/grapheme-splitter/index.js?v=e55fe16c' does not provide an export named 'default'
changed the title [-]component-testing-examples/tree/main/lit-typescript-vite doesnt work[/-][+]component-testing-examples/tree/main/lit-typescript-vite doesnt work when using pnpm[/+]on Feb 2, 2025
Try changing the "moduleResolution" from "Node" to "bundler" in tsconfig.json.
Ex:
"moduleResolution": "bundler",
As I understand it, "bundler" is a newer option that handles pnpm linked directories much better. (I just ran into this problem today and changing it worked for me.)
Try changing the "moduleResolution" from "Node" to "bundler" in tsconfig.json.
Ex:
"moduleResolution": "bundler",
As I understand it, "bundler" is a newer option that handles pnpm linked directories much better. (I just ran into this problem today and changing it worked for me.)
Activity
[-]component-testing-examples/tree/main/lit-typescript-vite doesnt work[/-][+]component-testing-examples/tree/main/lit-typescript-vite doesnt work when using pnpm[/+]christian-bromann commentedon Feb 3, 2025
Thanks for raising the issue @flipkickmedia .. any contribution to the WebdriverIO project that may help to resolve the issue are appreciated.
weedySeaDragon commentedon Jun 12, 2025
Try changing the
"moduleResolution"from"Node"to"bundler"intsconfig.json.Ex:
As I understand it, "bundler" is a newer option that handles
pnpmlinked directories much better. (I just ran into this problem today and changing it worked for me.)flipkickmedia commentedon Jul 6, 2025
Does this work for both NPN and PNPM?