0

I am getting an error when starting the dev server/building the application:

import { vitePreprocess } from '@sveltejs/kit/vite'
         ^^^^^^^^^^^^^^
SyntaxError: The requested module '@sveltejs/kit/vite' does not provide an export named 'vitePreprocess'
    at ModuleJob._instantiate (node:internal/modules/esm/module_job:146:21)
    at async ModuleJob.run (node:internal/modules/esm/module_job:229:5)
    at async ModuleLoader.import (node:internal/modules/esm/loader:473:24)
1
  • If you want to provide knowledge, the question should still only state the problem, the solution should be provided as an actual answer. (It is possible to answer one's own question.) Commented Mar 21 at 9:50

1 Answer 1

0

You just have to import viteProcess from @sveltejs/vite-plugin-svelte.

Sign up to request clarification or add additional context in comments.

1 Comment

As it’s currently written, your answer is unclear. Please edit to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers in the help center.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.