Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vue3 + Vite + Okta. [vite] Post build Okta is not working but in dev mode okta is working fine #17496

Closed
7 tasks done
PavankalyanPayyavula opened this issue Jun 17, 2024 · 2 comments

Comments

@PavankalyanPayyavula
Copy link

PavankalyanPayyavula commented Jun 17, 2024

Describe the bug

Describe the bug

Hi

I am working on developing an new application using Vue3 + Vite + Okta Vue.
These are the below libraries I am using in my application
@okta/okta-auth-js, @okta/okta-vue,

When I am try running application in my local machine in dev mode it is working. But when I build then I guess rollup is not able to import them properly.

I have tried the solution you mentioned in #1315 but it is not working.

Reproduction

https://developer.okta.com/docs/guides/sign-in-to-spa-authjs/vue/main/

Steps to reproduce

I've tried it on an empty Vue3 project with Vite and vue-router, just adding the Okta components.
Create a project following the Vue v3 using vite
npm install @okta/okta-auth-js
npm install @okta/okta-vue
Now try to run it

npm run dev
And I get the error:
[vite] Optimizable dependencies detected:
@okta/okta-auth-js, @okta/okta-vue, vue

System Info

I am using Mac OS,
Node version 20.9.0
Vite 5.3.1
Vue 3.4.29

Used Package Manager

npm

Logs

No Logs

Validations

@patak-dev
Copy link
Member

This isn't a minimal reproduction. See https://antfu.me/posts/why-reproductions-are-required
Please don't tag individual maintainers when you open issues 🙏🏼

Copy link

Hello @PavankalyanPayyavula. Please provide a minimal reproduction using a GitHub repository or StackBlitz. Issues marked with needs reproduction will be closed if they have no activity within 3 days.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jun 21, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Jul 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants