question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

vitesse-formkit error when build

See original GitHub issue

Hi, 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:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
serggiocaramellocommented, Feb 17, 2022

Nice!, Thank you for your help Justin.

1reaction
justin-schroedercommented, Feb 16, 2022

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Changelog ⚡️ FormKit — Vue Forms, Supercharged
Fixes an issue that caused server side rendering and server side generation on Nuxt and vite-ssg/vitesse to throw exceptions during build ...
Read more >
FormKit ⚡️ Vue Forms — Supercharged
A Vue form building framework that simplifies form structure, generation, validation, ... Easy back-end error handling, show errors on forms and inputs.
Read more >
Examples — Essentials ⚡️ FormKit — Vue Forms, ...
A plugin that automatically scrolls to the first error on the page on submit or when backend errors are added. Inputs. Number input...
Read more >
Validation — Essentials ⚡️ FormKit — Vue Forms, ...
Errors are shown only after a user attempts to submit a form. Form submission. If an input is inside a form, then any...
Read more >
Inputs — Essentials ⚡️ FormKit — Vue Forms, ...
Of course, you can write your own inputs too by creating custom inputs. ... Validation errors are not the only way to set...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found