We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
wildcard and resolve.alias can't work at the same time my project is built with VueCli3 webpack set the resolve.alias '@' folder:
src/ ├─ views/ │ ├─ index.vue │ ├─ test.vue
code:
import { Index as temp } from '@/views/*'; console.log(temp);
error:Uncaught Error: Cannot find module '@/views/*'
Uncaught Error: Cannot find module '@/views/*'
The text was updated successfully, but these errors were encountered:
I don't know about webpack resolve.alias specifically but for this I use: https://www.npmjs.com/package/babel-plugin-root-import which is babel plugin that makes babel resolve the @ path. (There's also https://www.npmjs.com/package/babel-plugin-module-resolver which is popular but I don't use that one personally)
@
Sorry, something went wrong.
No branches or pull requests
wildcard and resolve.alias can't work at the same time
my project is built with VueCli3
webpack set the resolve.alias '@'
folder:
code:
error:
Uncaught Error: Cannot find module '@/views/*'
The text was updated successfully, but these errors were encountered: