node.js - The requested module '@sveltejskitvite' does not provide an export named 'vitePreprocess&#

I am getting an error when starting the dev serverbuilding the application:import { vitePreprocess }

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
Add a comment  | 

1 Answer 1

Reset to default 0

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

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744364057a4570610.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信