I am getting “is not a constructor” when trying to implement auth0 within pwa (following this documentation Vue.js Kanban Board: The Development Process)
I have the kanban example and copying approach from the GitHub - auth0-blog/vue-auth0-aside: Aside: Vue with Auth0 and an authenticated Node API. (merging the two samples)
I get this error within router/index.js. Any ideas?
index.js?61a1:14 Uncaught TypeError: WEBPACK_IMPORTED_MODULE_6__auth_Auth.a is not a constructor
at eval (index.js?61a1:14)
at Object…/src/router/index.js (app.js:1849)
at webpack_require (app.js:679)
at fn (app.js:89)
at eval (Auth.js:8)
at Object…/src/auth/Auth.js (app.js:1753)
at webpack_require (app.js:679)
at fn (app.js:89)
at eval (selector.js?type=script&index=0!./src/App.vue:3)
at Object…/node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./src/App.vue (app.js:758)
My package.json is as follows
{
“name”: “auth0-kanban”,
“version”: “1.0.0”,
“description”: “A Vue.js project”,
“author”: “Steve Hobbs elkdanger@gmail.com”,
“private”: true,
“scripts”: {
“dev”: “webpack-dev-server --inline --progress --config build/webpack.dev.conf.js”,
“start”: “http-server dist/ -a 0.0.0.0 -p 8080”,
“lint”: “eslint --ext .js,.vue src”,
“build”: “node build/build.js”
},
“dependencies”: {
“auth0-js”: “^9.12.1”,
“axios”: “^0.19.0”,
“http-server”: “^0.11.1”,
“vue”: “^2.5.2”,
“vue-router”: “^3.0.1”
},
“devDependencies”: {
“autoprefixer”: “^7.1.2”,
“babel-core”: “^6.22.1”,
“babel-eslint”: “^7.1.1”,
“babel-loader”: “^7.1.1”,
“babel-plugin-transform-runtime”: “^6.22.0”,
“babel-preset-env”: “^1.3.2”,
“babel-preset-stage-2”: “^6.22.0”,
“chalk”: “^2.0.1”,
“copy-webpack-plugin”: “^4.0.1”,
“css-loader”: “^0.28.0”,
“eslint”: “^3.19.0”,
“eslint-config-airbnb-base”: “11.3.0”,
“eslint-friendly-formatter”: “^3.0.0”,
“eslint-import-resolver-webpack”: “0.8.3”,
“eslint-loader”: “^1.7.1”,
“eslint-plugin-html”: “^3.0.0”,
“eslint-plugin-import”: “2.7.0”,
“eventsource-polyfill”: “^0.9.6”,
“extract-text-webpack-plugin”: “^3.0.0”,
“friendly-errors-webpack-plugin”: “^1.6.1”,
“html-webpack-plugin”: “^2.30.1”,
“node-notifier”: “^5.1.2”,
“optimize-css-assets-webpack-plugin”: “^3.2.0”,
“ora”: “^1.2.0”,
“portfinder”: “^1.0.13”,
“postcss-import”: “^11.0.0”,
“postcss-loader”: “^2.0.8”,
“rimraf”: “^2.6.0”,
“semver”: “^5.3.0”,
“serviceworker-webpack-plugin”: “^0.2.3”,
“shelljs”: “^0.7.6”,
“uglifyjs-webpack-plugin”: “^1.1.1”,
“url-loader”: “^1.1.1”,
“vue-loader”: “^13.3.0”,
“vue-style-loader”: “^3.0.1”,
“vue-template-compiler”: “^2.5.2”,
“vuedraggable”: “^2.16.0”,
“vuex”: “^3.0.1”,
“webpack”: “^3.6.0”,
“webpack-bundle-analyzer”: “^2.9.0”,
“webpack-dev-server”: “^2.9.1”,
“webpack-merge”: “^4.1.0”
},
“engines”: {
“node”: “>= 4.0.0”,
“npm”: “>= 3.0.0”
},
“browserslist”: [
“> 1%”,
“last 2 versions”,
“not ie <= 8”
]
}