Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

component-testing-examples/tree/main/lit-typescript-vite doesnt work when using pnpm #29

Open

Description

@flipkickmedia

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'

Activity

  1. 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
  2. christian-bromann commented on Feb 3, 2025

    @christian-bromann
    Member

    Thanks for raising the issue @flipkickmedia .. any contribution to the WebdriverIO project that may help to resolve the issue are appreciated.

  3. added
    bug
    help wanted
    on Feb 3, 2025
  4. weedySeaDragon commented on Jun 12, 2025

    @weedySeaDragon

    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.)

  5. flipkickmedia commented on Jul 6, 2025

    @flipkickmedia
    Author

    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.)

    Does this work for both NPN and PNPM?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bughelp wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions