wrappid / wrappid-app

A frontend boilerplate template application built for using Wrappid framework, which enables simultaneous development of web and mobile application
https://www.github.com/wrappid
MIT License
13 stars 6 forks source link

bug: auth is undefined #120

Closed chirag-uemk closed 2 months ago

chirag-uemk commented 4 months ago

Describe the bug

Getting the following error on screen once I've created a application from wrappid-app template and setup the project with toolkit command and start the project :

The error shows auth is undefined.

To Reproduce

Steps to reproduce the behavior:

wr init <project-name> wr setup web wr start web

See error

Expected behavior

The /defaultAppRoute supposed to show a boilerplate default page.

Desktop (please complete the following information):

  1. OS: Ubuntu 22.04
  2. Browser: Mozilla 125.0
  3. Version: @wrappid/core 0.0.469
chirag-uemk commented 4 months ago

Getting the following error on screen once I've created a application from wrappid-app template and setup the project with toolkit command and start the project :

The error shows auth is undefined.

A solution to this can be found in the following changes in the code :

devDependencies in package.json can be updated to :

 "devDependencies": {
    "@commitlint/cli": "17.5.0",
    "@commitlint/config-conventional": "17.4.4",
    "@commitlint/prompt-cli": "17.5.0",
    "@wrappid/core": "0.0.469",
    "@wrappid/styles": "0.0.149",
    "eslint": "8.56.0",
    "eslint-plugin-etc": "2.0.3",
    "eslint-plugin-import": "2.27.5",
    "eslint-plugin-react": "7.32.2",
    "eslint-plugin-sort-keys-fix": "1.1.2",
    "eslint-plugin-unused-imports": "2.0.0",
    "husky": "8.0.3",
    "license-checker": "25.0.1",
    "react": "18.2.0",
    "redux": "4.2.0",
    "standard-version": "9.5.0"
  }

defaultRoute can be updated to :

"defaultRoute": "defaultAppRoute",

in dev, stage and env in wrappid.conf.json

defaultRoute can be updated to defaultAppRoute

in RoutesRegistery.js.

techoneel commented 2 months ago

This issue is no longer a valid issue so closing this issue.