Unable to add Okta and okta-widget to Vue Js

Adding okta sdk and widget on my vue app throws this error:

Auth.js?7035:19 Uncaught ReferenceError: PACKAGE is not defined
at eval (Auth.js?7035:19)
at Module../node_modules/@okta/okta-vue/src/Auth.js (chunk-vendors.js:1428)
at __webpack_require__ (app.js:849)
at fn (app.js:151)
at eval (router.js:9)
at Module../src/router.js (app.js:3992)
at __webpack_require__ (app.js:849)
at fn (app.js:151)
at eval (main.js:28)
at Module../src/main.js (app.js:3980)

@okta/okta-signin-widget”: “^4.4.2”,
@okta/okta-vue”: “^2.1.1”,

ok, i was importing the sdk wrongly.

using: import Auth from '@okta/okta-vue/src/Auth'

instead of import Auth from '@okta/okta-vue'

@chairmo Thanks for the update. It sounds like the issue is gone after you import correct Okta SDK.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.