【发布时间】:2022-02-08 04:59:08
【问题描述】:
在探索用于苗条应用程序的“snel”编译器时,我在尝试导入远程苗条组件时遇到了一个问题
在尝试导入组件时出现以下错误。
TypeError: Cannot read properties of undefined (reading 'svelte')
at Object.resolveId (https://deno.land/x/snel@v0.6.0/src/shared/bundler.js:57:37)
at https://unpkg.com/rollup@2.58.0/dist/es/rollup@2.58.0/dist/es/rollup.browser.js:11:370111
我没有发现任何类似的问题,或者找不到此导入语句不起作用的原因。 所以我想知道如何使用 deno 和 snel 为 svelte 导入外部组件?
【问题讨论】:
标签: import components svelte deno