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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"stat" is not exported by "__vite-browser-external" #12840

Open
1 task done
no13bus opened this issue Dec 27, 2024 · 0 comments
Open
1 task done

"stat" is not exported by "__vite-browser-external" #12840

no13bus opened this issue Dec 27, 2024 · 0 comments
Labels
needs triage Issue needs to be triaged

Comments

@no13bus
Copy link

no13bus commented Dec 27, 2024

Astro Info

Astro                    v4.2.1
Node                     v20.18.1
System                   macOS (arm64)
Package Manager          npm
Output                   static
Adapter                  none
Integrations             @astrojs/tailwind
                         @astrojs/react
                         @astrojs/sitemap
                         astro-i18next

If this issue only occurs in one browser, which browser is a problem?

Chrome

Describe the Bug

after I run "npm run build", there is the error:

22:05:21 [ERROR] [vite] "stat" is not exported by "__vite-browser-external", imported by "node_modules/escalade/dist/index.mjs". file: /Users/qihui/personal/danieljia.work/node_modules/escalade/dist/index.mjs:2:18 1: import { dirname, resolve } from 'path'; 2: import { readdir, stat } from 'fs'; ^ 3: import { promisify } from 'util'; "stat" is not exported by "__vite-browser-external", imported by "node_modules/escalade/dist/index.mjs". Stack trace:

there are some warnings:
22:05:20 [WARN] [vite] [plugin:vite:resolve] Module "module" has been externalized for browser compatibility, imported by...

What's the expected result?

no bug

Link to Minimal Reproducible Example

https://stackblitz.com/github/withastro/astro/tree/latest/examples/blog?file=README.md&on=stackblitz

Participation

  • I am willing to submit a pull request for this issue.
@github-actions github-actions bot added the needs triage Issue needs to be triaged label Dec 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs triage Issue needs to be triaged
Projects
None yet
Development

No branches or pull requests

1 participant