You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given the following plugin with the module path plugin.com
bud-admin/
view/
index.svelte
plugin.go
go.mod
And an application with the following module path app.com, if you run bud build, you'll get the following:
ssr_test.go:293: err: conjure: generate "bud/view/_ssr.js" > ✘ [ERROR] Could not resolve "./view/index.svelte"
svelte:./bud/view/index.svelte:2:28:
2 │ import ViewIndexSvelte from "./view/index.svelte"
╵ ~~~~~~~~~~~~~~~~~~~~~
I assume this error is because ESBuild doesn't yet support virtual file paths, so it's one of the few places in the codebase where we rely on the underlying filesystem. The actual location of the index view is in the plugin.com module's view/ not your app.com's view/.
If that's the case, the ESBuild resolver should be updated to use the virtual filesystem.
The text was updated successfully, but these errors were encountered:
matthewmueller
changed the title
Plugins that contain views don't work yet
Plugins that contain views don't resolve yet
May 17, 2022
Given the following plugin with the module path
plugin.com
And an application with the following module path
app.com
, if you runbud build
, you'll get the following:I assume this error is because ESBuild doesn't yet support virtual file paths, so it's one of the few places in the codebase where we rely on the underlying filesystem. The actual location of the index view is in the
plugin.com
module'sview/
not yourapp.com
'sview/
.If that's the case, the ESBuild resolver should be updated to use the virtual filesystem.
The text was updated successfully, but these errors were encountered: