You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 11, 2018. It is now read-only.
I am trying to set up an alias for my common module directory.
I want
import { RouterModule } from '~app/common';
instead of
import { RouterModule } from '../common';
How can i achieve this? I have tried to add alias in webpack.config.js but compiler is looking for module relative to "app/tns_modules/".
The text was updated successfully, but these errors were encountered:
The tilde on an import will signify importing a module from node_modules, not your app directory. You should be able to create a webpack alias and import from app/common, assuming you have an index.ts in that file location.
I am trying to set up an alias for my common module directory.

I want
import { RouterModule } from '~app/common';
instead of
import { RouterModule } from '../common';
How can i achieve this? I have tried to add alias in webpack.config.js but compiler is looking for module relative to "app/tns_modules/".
The text was updated successfully, but these errors were encountered: