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
I believe the error message below is descriptive enough. We're using pathe inside the SvelteKit project as resolve.alias for "path" or "node:path", like so:
import path$1, { join, dirname, win32, resolve as resolve$2 } from "pathe";
^^^^^
SyntaxError: The requested module 'pathe' does not provide an export named 'win32'
at ModuleJob._instantiate (node:internal/modules/esm/module_job:180:21)
at async ModuleJob.run (node:internal/modules/esm/module_job:263:5)
at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:547:26)
at async Promise.all (index 8
import path$2, { resolve as resolve$3, join as join$1, win32, posix, isAbsolute } from "pathe";
^^^^^
SyntaxError: The requested module 'pathe' does not provide an export named 'posix'
The text was updated successfully, but these errors were encountered:
Environment
pathe@1.1.2
v22.12.0
v15.2
Reproduction
I believe the error message below is descriptive enough. We're using
pathe
inside the SvelteKit project asresolve.alias
for"path"
or"node:path"
, like so:This is set this way because some of the imported dependencies are using
"node:path"
, which cannot be used in browser for example.Describe the bug
The value
win32
cannot be destructured/imported from this package. The error occurs during Vite build process.Additional context
Node.js documentation
Logs
The text was updated successfully, but these errors were encountered: