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

it seems not to be working from subdirectories #420

Open
danielzzz opened this issue Dec 28, 2020 · 0 comments
Open

it seems not to be working from subdirectories #420

danielzzz opened this issue Dec 28, 2020 · 0 comments

Comments

@danielzzz
Copy link

hello,

this is my config (package.json)

"plugins": [
      [
        "module-resolver",
        {
          "cwd": "packagejson",
          "alias": {
            "@nav": "./src/navigation",
            "underscore": "lodash",
            "@store": "./src/store"
          }
        }
      ]
    ]

when I use
import store from '@store/configureStore' in a file that is in src it works

but in any subdirectory for example src/mycomponent it does not..

I tried different configurations of "root" but I could not find any that would work

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