Skip to content

Commit f767243

Browse files
authored
fix: try resolving tailwindcss from module (#974)
1 parent d40ed3f commit f767243

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/resolvers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export async function resolveCSSPath(cssPath: Exclude<ModuleOptions['cssPath'],
1616

1717
return existsSync(_cssPath)
1818
? [_cssPath, `Using Tailwind CSS from ~/${relative(nuxt.options.srcDir, _cssPath)}`]
19-
: await tryResolveModule('tailwindcss/package.json')
19+
: await tryResolveModule('tailwindcss/package.json', import.meta.url)
2020
.then(twLocation => twLocation ? [join(twLocation, '../tailwind.css'), 'Using default Tailwind CSS file'] : Promise.reject('Unable to resolve tailwindcss. Is it installed?'))
2121
}
2222
else {

0 commit comments

Comments
 (0)