Skip to content

Commit c9c7d47

Browse files
authoredOct 4, 2024··
fix: error The URL must be of scheme file (#262)
1 parent 7cb5ade commit c9c7d47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/module.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export default defineNuxtModule<ModuleOptions>({
6767
addComponent({
6868
name: options.componentName || 'Icon',
6969
global: true,
70-
filePath: resolver.resolve('./runtime/components/index'),
70+
filePath: await resolver.resolvePath('./runtime/components/index'),
7171
})
7272
addServerHandler({
7373
route: `${options.localApiEndpoint || '/api/_nuxt_icon'}/:collection`,

0 commit comments

Comments
 (0)
Please sign in to comment.