![]() ![]()
"moduleNameMapper": "/src/components$1",ĪPP_DIR: path. Webpack to the rescue To solve this, Webpack provides users with resolve.alias which allows for concise and consistent file imports. Tags : javascript,reactjs,webpack,jestjs,webpack-2 ![]() I have tried using jest-webpack-alias, babel-plugin-module-resolver and the Jest/Webpack docs Imports: import Ordinal from Avatar from some reason the causes issues, so when removed (in both alias and import), it can find shared but components still cannot be resolved. ![]() "moduleNameMapper": "/shared/components/"
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |