KusStar / vite-bundle-visualizer

CLI for visualizing your vite project bundle.
MIT License
321 stars 7 forks source link

Error: Cannot find package '@babel/plugin-transform-react-jsx' #10

Open beautyfree opened 1 year ago

beautyfree commented 1 year ago
Packages: +25
+++++++++++++++++++++++++
Progress: resolved 25, reused 12, downloaded 13, added 25, done
vite v4.4.11 building for production...
✓ 2 modules transformed.
✓ built in 121ms
[vite:preact-jsx] Cannot find package '@babel/plugin-transform-react-jsx' imported from /workspaces/dwidget/widgets/lido/babel-virtual-resolve-base.js
file: /workspaces/dwidget/widgets/lido/src/main.tsx
/workspaces/dwidget/node_modules/.pnpm/@babel+core@7.23.2/node_modules/@babel/core/lib/vendor/import-meta-resolve.js:233
  Error.captureStackTrace(error);
        ^

Error: Cannot find package '@babel/plugin-transform-react-jsx' imported from /workspaces/dwidget/widgets/lido/babel-virtual-resolve-base.js
KusStar commented 12 months ago

Can you provide a reproduce repo?