vitesse-formkit error when build
See original GitHub issueHi, developer mode works as a charm, but, when i tried to make a build terminal shows this error: ‘@formkit/vue’ does not provide an export named ‘plugin’
Minimal reproduction: https://github.com/serggiocaramello/vitesse-formkit-issue
Full error message:
[vite-ssg] An internal error occurred.
[vite-ssg] Please report an issue, if none already exists: https://github.com/antfu/vite-ssg/issues
(node:8912) UnhandledPromiseRejectionWarning: file:///C:/folder/vitesse-formkit/.vite-ssg-temp/main.mjs:20
import { plugin, defaultConfig } from “@formkit/vue”;
^^^^^^
SyntaxError: The requested module ‘@formkit/vue’ does not provide an export named ‘plugin’
at ModuleJob._instantiate (internal/modules/esm/module_job.js:124:21)
at async ModuleJob.run (internal/modules/esm/module_job.js:179:5)
at async Loader.import (internal/modules/esm/loader.js:178:24)
at async build (C:\folder\vitesse-formkit\node_modules.pnpm\vite-ssg@0.17.10_1ede6668370ad42aad1df87e2fa73e29\node_modules\vite-ssg\dist\node\cli.cjs:180:87)
at async Object.handler (C:\folder\vitesse-formkit\node_modules.pnpm\vite-ssg@0.17.10_1ede6668370ad42aad1df87e2fa73e29\node_modules\vite-ssg\dist\node\cli.cjs:314:3)
(Use node --trace-warnings ...
to show where the warning was created)
(node:8912) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict
(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
(node:8912) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Desktop
-
OS: Windows 10 Pro 21 H1
-
Browser: Firefox 97.0
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (3 by maintainers)
Top GitHub Comments
Nice!, Thank you for your help Justin.
Ok — I was able to track this down, and it is fixed in the beta.3 branch. The issue has to do with export maps in the package.json.