-
-
Notifications
You must be signed in to change notification settings - Fork 348
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Path aliasing doesn't work in +config.ts
files
#1546
Comments
Define your path aliases at Also see #1547. |
@brillout thanks, but it doesn't work :( I've added "imports": {
"#*": "./src/*"
}, and change my import to this: import { SITE_NAME } from '#constants.js'; VScode resolves it perfectly, BUT vike doesn't:
if I change extension to import { SITE_NAME } from '#constants.mjs'; maybe you know how to fix it? I've found only one solution: rename |
Can you create a minimal reproduction? |
Description
I'm trying to use absolute import with path aliasing that I successfully enabled (it works properly in regular components):
But it doesn't work in
+config
file:As a workaround I've switched to relative imports, but itsnot convenient honestly :)
The text was updated successfully, but these errors were encountered: