monacoEditorPlugin is not a function
TypeError: monacoEditorPlugin is not a function
at file:///C:/Users//PhpstormProjects//svelte.config.js:19:5
at ModuleJob.run (node:internal/modules/esm/module_job:183:25)
at async Loader.import (node:internal/modules/esm/loader:178:24)
at async load_config (file:///C:/Users//PhpstormProjects//node_modules/.pnpm/@sveltejs+kit@1.0.0-next.202_sass@1.42.1+svelte@3.44.0/node_modules/@sveltejs/kit/dist/cli.js:702:17)
at async get_config (file:///C:/Users//PhpstormProjects//node_modules/.pnpm/@sveltejs+kit@1.0.0-next.202_sass@1.42.1+svelte@3.44.0/node_modules/@sveltejs/kit/dist/cli.js:774:10)
at async file:///C:/Users//PhpstormProjects//node_modules/.pnpm/@sveltejs+kit@1.0.0-next.202_sass@1.42.1+svelte@3.44.0/node_modules/@sveltejs/kit/dist/cli.js:836:18
ELIFECYCLE Command failed with exit code 1.
网上搜了一大堆方案,都不行。扔报错:
You can mark the path “monaco-editor” as external to exclude it from the
bundle, which will remove this error and leave the unresolved path in the
bundle.
官网说的方案也不行:跳转
解决方案:
1、按照官网提示的操作执行后。
2、再安装 monaco-editor。
解决。
12-01
4891
03-04
2519
04-02
659