Closed priority3 closed 3 weeks ago
addImportPreset
was added in v0.18.6
. So you have to use v0.18.6
or higher. Upgrade to the latest version:
pnpm i -D wxt@latest
I'll fix the peer dependency requirement.
addImportPreset
was added inv0.18.6
. So you have to usev0.18.6
or higher. Upgrade to the latest version:
right, I wanna use v0.18.6
and initial the template as v0.18.6
, but the error appears: No matching version found for wxt@^0.18.6
, so I change back to v0.18.5
addImportPreset
was added inv0.18.6
. So you have to usev0.18.6
or higher. Upgrade to the latest version:right, I wanna use
v0.18.6
and initial the template asv0.18.6
, but the error appears:No matching version found for wxt@^0.18.6
, so I change back tov0.18.5
![]()
it's my bad, just the local cache and registry error;
Describe the bug
there is an error when run
wxt prepare
Reproduction
-
Steps to reproduce
just run![image](https://github.com/wxt-dev/wxt/assets/75966543/0b128587-6cd3-44c4-a1f8-baceb6ecc3ab)
pnpm dlx wxt@latest init <my-project-name>
, selectreact
andpnpm
, thenpnpm i
; note:This error happened while installing a direct dependency of xx, The latest release of wxt is "0.18.5".
(the default release is0.18.6
), change the release ofwxt
in package.json to the latest release0.18.5
and reinstall, there is an error:SyntaxError: The requested module 'wxt/modules' does not provide an export named 'addImportPreset'
System Info
Used Package Manager
pnpm
Validations