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 created a WXT project with PandaCSS, it work well when developping by pnpm run dev, but when I run pnpm run build, it report an error: Error: Loading PostCSS Plugin failed: Invalid URL.
Reproduction
See the steps to reproduce.
Steps to reproduce
pnpm dlx wxt@latest init # use solidjscd project
pnpm install
pnpm add -D @pandacss/dev
pnpm exec panda init --postcss
pnpm run build # reports error
Activity
aklinker1 commentedon Dec 1, 2024
This is caused by WXT polyfilling the
documentglobal when importing entrypoints to get their options.Specifically, it's because
ts-evaluator's code:Specifically,
document.baseURIisnull, and that is causing the "invalid URL" error here:This is the same as #931.
aklinker1 commentedon Dec 1, 2024
See #931 (comment) for a workaround.
aklinker1 commentedon Dec 8, 2024
Re-tested with fix from #1207, it didn't fix the issue with panda CSS. Same error.