[x] You verified that this is a real problem by searching the [NativeScript Forum] and the other [issues] in this repo.
[x] You checked our [demo apps] and the [documentation] for sample usage.
Tell us about the problem
Hi, first this issue might look like a duplicate of #547, but it is not because the issue was marked resolved in 0.13 and I use that version.
Step to reproduce:
Go to your NS+Angular project
tns run android --bundle --env.aot
Modify a file
Wait for file watch, then read this in the console
Error: ENOENT: no such file or directory, stat '/Users/fthuin/Documents/tabacstop-nativescript/app/app-routing.module.ngfactory.js'
at Object.fs.statSync (fs.js:948:11)
at Object.statSync (/Users/fthuin/Documents/tabacstop-nativescript/node_modules/graceful-fs/polyfills.js:297:22)
at Storage.provideSync (/Users/fthuin/Documents/tabacstop-nativescript/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:98:13)
at CachedInputFileSystem.statSync (/Users/fthuin/Documents/tabacstop-nativescript/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:251:28)
at VirtualFileSystemDecorator.statSync (/Users/fthuin/Documents/tabacstop-nativescript/node_modules/@ngtools/webpack/src/packages/ngtools/webpack/src/virtual_file_system_decorator.ts:74:44)
at virtualFilesStats._virtualInputFileSystem.getVirtualFilesPaths.map (/Users/fthuin/Documents/tabacstop-nativescript/node_modules/@ngtools/webpack/src/packages/ngtools/webpack/src/virtual_file_system_decorator.ts:133:48)
at Array.map (<anonymous>)
at newCallback (/Users/fthuin/Documents/tabacstop-nativescript/node_modules/@ngtools/webpack/src/packages/ngtools/webpack/src/virtual_file_system_decorator.ts:131:10)
at Watchpack.watcher.once (/Users/fthuin/Documents/tabacstop-nativescript/node_modules/webpack/lib/node/NodeWatchFileSystem.js:43:4)
at Object.onceWrapper (events.js:317:30)
at emitTwo (events.js:126:13)
at Watchpack.emit (events.js:214:7)
at Watchpack._onTimeout (/Users/fthuin/Documents/tabacstop-nativescript/node_modules/watchpack/lib/watchpack.js:144:7)
at ontimeout (timers.js:475:11)
at tryOnTimeout (timers.js:310:5)
at Timer.listOnTimeout (timers.js:270:5)
Look for the app-routing.module.ngfactory.{js|ts}, it doesn't exist. Doesn't seem created/needed by NS Angular in most template examples.
Local environment
[x] Mac
[x] node v8.9.4
[x] NativeScript CLI version 4.1.0
Project data
[x] Platform you are building the app for both Android and iOS
Issue Checklist
Tell us about the problem
Hi, first this issue might look like a duplicate of #547, but it is not because the issue was marked resolved in 0.13 and I use that version.
Step to reproduce:
tns run android --bundle --env.aot
Local environment
Project data
const webpack = require("webpack"); const nsWebpack = require("nativescript-dev-webpack"); const nativescriptTarget = require("nativescript-dev-webpack/nativescript-target"); const { PlatformReplacementHost } = require("nativescript-dev-webpack/host/platform"); const CleanWebpackPlugin = require("clean-webpack-plugin"); const CopyWebpackPlugin = require("copy-webpack-plugin"); const { BundleAnalyzerPlugin } = require("webpack-bundle-analyzer"); const { NativeScriptWorkerPlugin } = require("nativescript-worker-loader/NativeScriptWorkerPlugin"); const UglifyJsPlugin = require("uglifyjs-webpack-plugin"); const { AngularCompilerPlugin } = require("@ngtools/webpack");
module.exports = env => { // Add your custom Activities, Services and other Android app components here. const appComponents = [ "tns-core-modules/ui/frame", "tns-core-modules/ui/frame/activity", ];
};