Snowpack 2.8.0 doesn't support "alias" anymore #840
Replies: 3 comments 8 replies
-
Hm, if you remove "%" from the import, does it still work? That feature is definitely meant to still exist, but the special character may be messing with our resolution algorithm. |
Beta Was this translation helpful? Give feedback.
This comment has been minimized.
This comment has been minimized.
-
I took your test package and added
This works! (with version 2.7.x of snowpack) But then I changed in package.json/dependencies and it produces
I assume that since 2.8.0 the completion of short alias with index/index.js disappeared. |
Beta Was this translation helpful? Give feedback.
-
After an update to 2.8.0 snowpack build does not recognize the alias defined in snowpack.config.json.
"alias": {
"%router": "./src/router",
"%user": "./src/store/user"
},
Could not resolve unkonwn import "%router"
Beta Was this translation helpful? Give feedback.
All reactions