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.
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 ~
Uh oh!
There was an error while loading. Please reload this page.
Create an app by
tns create MY_PROJECT --template tns-template-hello-world-ng
, setupnativescript-dev-webpack
, and simply change this line fromto
and run
npm run start-android-bundle
, then get the following error.The same code builds and works successfully when running
tns run android
, so guess it's webpack's problem?Here's the relative looking infos
package.json
tsconfig.json
webpack.config.js
Anybody knows why?
The text was updated successfully, but these errors were encountered: