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 Aug 7, 2021. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 7, 2021. It is now read-only.
[Reproducible] Can't resolve tilde ("~") included path #298
Create an app by tns create MY_PROJECT --template tns-template-hello-world-ng, setup nativescript-dev-webpack, and simply change this line from
import { ItemsComponent } from "./item/items.component";
to
import { ItemsComponent } from "~/item/items.component";
and run npm run start-android-bundle, then get the following error.
ERROR in Error encountered resolving symbol values statically.
Could not resolve ~/item/items.component relative to /MY_PROJECT/app/app.routing.ts.,
resolving symbol AppRoutingModule in /MY_PROJECT/app/app.routing.ts,
resolving symbol AppRoutingModule in /MY_PROJECT/app/app.routing.ts,
resolving symbol AppRoutingModule in /MY_PROJECT/app/app.routing.ts
ERROR in ./main.aot.ts
Module not found: Error: Can't resolve './app.module.ngfactory' in '/MY_PROJECT/app'
@ ./main.aot.ts 5:29-62
The same code builds and works successfully when running tns run android, so guess it's webpack's problem?
Confirming that the alias is not working for import paths.
Steps to reproduce - use this sample application and bundle with WebPack.
Bundling fails here due to using the alias ~
Activity
NickIliev commentedon Oct 23, 2017
Confirming that the alias is not working for import paths.
Steps to reproduce - use this sample application and bundle with WebPack.
Bundling fails here due to using the alias
~geocine commentedon Jan 11, 2019
Does anyone have a solution for this one?