Skip to content

Vite 6: The "path" argument must be of type string. Received an instance of RegExp #18875

@marekdedic

Description

@marekdedic

Describe the bug

Hi,
I'm trying to update my plugin to Vite v6 (marekdedic/rollup-plugin-htaccess#170), however, I'm encoutering issues with my tests on Vite 6.

Reproduction

https://github.com/marekdedic/vite-6-path-issue-repro

Steps to reproduce

  1. npm ci
  2. npm test

System Info

System:
    OS: Linux 6.8 Ubuntu 24.04.1 LTS 24.04.1 LTS (Noble Numbat)
    CPU: (12) x64 12th Gen Intel(R) Core(TM) i7-1265U
    Memory: 6.57 GB / 15.23 GB
    Container: Yes
    Shell: 5.9 - /usr/bin/zsh
  Binaries:
    Node: 22.11.0 - /usr/bin/node
    Yarn: 1.22.21 - /usr/bin/yarn
    npm: 10.9.1 - /usr/bin/npm
  npmPackages:
    vite: ^6.0.2 => 6.0.2

Used Package Manager

npm

Logs

No response

Validations

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy