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)
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)
Share
Improve this question
edited Mar 21 at 9:52
brunnerh
186k30 gold badges357 silver badges430 bronze badges
asked Mar 21 at 9:15
blue_byteblue_byte
11 bronze badge
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.) – brunnerh Commented Mar 21 at 9:50
1 Answer
Reset to default 0You just have to import viteProcess
from @sveltejs/vite-plugin-svelte
.
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744364057a4570610.html
评论列表(0条)