Skip to content

Does not work with Remix/RR v7 #20

@ivan-kleshnin

Description

@ivan-kleshnin

Reproduction Repo

https://github.com/ivan-kleshnin/unplugin-bug

Run npm run dev.

Performed Steps

  1. Bootstrap minimal template:npx create-react-router@latest --template remix-run/react-router-templates/minimal
  2. Modify vite.config.ts according to the Vite section in the docs
    (= the above repo link at this point)
  3. Run npm run dev
  4. Get this:
node:internal/modules/cjs/loader:1970
    throw new ERR_INVALID_ARG_VALUE('filename', filename, createRequireError);
          ^

TypeError [ERR_INVALID_ARG_VALUE]: The argument 'filename' must be a file URL object, file URL string, or absolute path string. Received undefined
    at createRequire (node:internal/modules/cjs/loader:1970:11)
    at file:///Users/ivankleshnin/Sandboxes/my-rr/node_modules/@phosphor-icons/unplugin/dist/chunk-OEJUFV6D.js:24:24
    at ModuleJob.run (node:internal/modules/esm/module_job:327:25)
    at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:663:26)
    at async loadConfigFromBundledFile (file:///Users/ivankleshnin/Sandboxes/my-rr/node_modules/vite/dist/node/chunks/dep-DBxKXgDP.js:49416:15)
    at async bundleAndLoadConfigFile (file:///Users/ivankleshnin/Sandboxes/my-rr/node_modules/vite/dist/node/chunks/dep-DBxKXgDP.js:49259:22)
    at async loadConfigFromFile (file:///Users/ivankleshnin/Sandboxes/my-rr/node_modules/vite/dist/node/chunks/dep-DBxKXgDP.js:49222:44)
    at async resolveConfig (file:///Users/ivankleshnin/Sandboxes/my-rr/node_modules/vite/dist/node/chunks/dep-DBxKXgDP.js:48718:24)
    at async _createServer (file:///Users/ivankleshnin/Sandboxes/my-rr/node_modules/vite/dist/node/chunks/dep-DBxKXgDP.js:38329:18)
    at async file:///Users/ivankleshnin/Sandboxes/my-rr/server.ts:17:23 {
  code: 'ERR_INVALID_ARG_VALUE'
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions