Closed NickIliev closed 6 years ago
I could solve the problem! I tried all the process again, but this time I didn't execute the update-ns-webpack script and it worked.
So I tried to create a new project executing the script and it didn't work, but then I created a new one without executing it and everything worked perfect.
So I think is something with that script.
Thank you so much!!
@juanchofelipe, I'm happy you were able to resolve your problem. Feel free to reopen if you encounter it again :)
From @juanchofelipe on August 30, 2018 16:14
Issue Checklist
Tell us about the problem
I followed the instructions to migrate from a web page to code sharing, and when I execute: npm run android --bundle I get the following:
Local environment
node --version
-->tns --version
-->Project data
const webpack = require("webpack"); const nsWebpack = require("nativescript-dev-webpack"); const nativescriptTarget = require("nativescript-dev-webpack/nativescript-target"); 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", ];
};