Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

"'promises' is not exported" error w/ Vite #12

Closed
Uninen opened this issue Feb 15, 2022 · 1 comment
Closed

"'promises' is not exported" error w/ Vite #12

Uninen opened this issue Feb 15, 2022 · 1 comment

Comments

@Uninen
Copy link

Uninen commented Feb 15, 2022

Hi!

First, Thank You for this and other great packages 馃憤

Just a heads up that this package fails to bundle with latest Vite (2.8.2) with following traceback:

'promises' is not exported by __vite-browser-external:node:fs, imported by node_modules/unused-filename/node_modules/path-exists/index.js
file: /Users/uninen/Code/Electron/--project--/node_modules/unused-filename/node_modules/path-exists/index.js:1:12
1: import fs, {promises as fsPromises} from 'node:fs';
               ^
2: 
3: export async function pathExists(path) {

Usually adding wonky packages to optimizeDeps config helps but couldn't get this one working at all. Not sure if the issue is with Vite, this package, my (TS) setup or just the color of the electricity today but I thought I'd report it anyways. Feel free to close if this doesn't seem valid.

@sindresorhus
Copy link
Owner

This is a problem with Vice or your Vite config.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants