Looks like router generation is currently broken, the generated file (src/router.ts) contains the following:
module.exports = (api, options) => {
require('@vue/cli-plugin-router/generator')(api, {
historyMode: options.routerHistoryMode,
};
export default new Router(options);
};
This is definitely not the desired result. A router/index.ts file is also generated, which looks correct for the most part, but the import { options } from './router' in main.native.ts no longer works.
After manually refactoring router/index to export the routes, and updating the routes.reduce function in main.native the app builds, but seems like the default route names have changed from lowercase to titlecase so goTo('home') and goTo('about') no longer work unless we either change the route names, or update the goTo calls to use the correct casing (home -> Home, about -> About).
Originally posted by @rigor789 in #35 (comment)
Looks like router generation is currently broken, the generated file (
src/router.ts) contains the following:This is definitely not the desired result. A
router/index.tsfile is also generated, which looks correct for the most part, but theimport { options } from './router'inmain.native.tsno longer works.After manually refactoring
router/indexto export the routes, and updating theroutes.reducefunction inmain.nativethe app builds, but seems like the default route names have changed from lowercase to titlecase sogoTo('home')andgoTo('about')no longer work unless we either change the route names, or update thegoTocalls to use the correct casing (home -> Home, about -> About).Originally posted by @rigor789 in #35 (comment)