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
When using PixiJS in a browser environment, it attempts to import eventemitter3 via require. This causes the following error at runtime:
Uncaught (in promise) SyntaxError: The requested module '/@fs/home/wrxinyue/projects/valaxy-theme-sakura/node_modules/.pnpm/[email protected]/node_modules/eventemitter3/index.js?v=c765f9a9' does not provide an export named 'default' (at index.mjs?v=c765f9a9:3:10)
Solution:
To resolve this issue, include the necessary dependencies using optimizeDeps.include in your Vite configuration to ensure the dependencies are pre-optimized during development. Example:
Description:
When using PixiJS in a browser environment, it attempts to import eventemitter3 via
require
. This causes the following error at runtime:Solution:
To resolve this issue, include the necessary dependencies using
optimizeDeps.include
in your Vite configuration to ensure the dependencies are pre-optimized during development. Example:Related Issues:
The text was updated successfully, but these errors were encountered: