Skip to content
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

alias: @ for src is not getting resolved, when running vue jest test #13

Open
ashu99099 opened this issue Sep 1, 2021 · 0 comments
Open

Comments

@ashu99099
Copy link

getting following error:
`ENOENT: no such file or directory, scandir 'home/app/src/components/@/assets/icons'

at enumerateFiles (node_modules/babel-plugin-require-context-hook/register.js:12:8)
at context (node_modules/babel-plugin-require-context-hook/register.js:27:16)`

The @ is being treated literally. since '@' is an alias for 'src'. The directory it should be looking at should be: 'src/assets/icons' (which is resolved from '@/assets/icons')

How can make babel-plugin-require-context-hook to resolve alias '@' to 'src'?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant