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

TypeError when adding plugin to existing vite project #465

Closed
civicBoy13 opened this issue Sep 26, 2022 · 2 comments
Closed

TypeError when adding plugin to existing vite project #465

civicBoy13 opened this issue Sep 26, 2022 · 2 comments

Comments

@civicBoy13
Copy link

Question / Discussion

Hi all,

Im having an issue when adding the plugin to an existing vite project with typescript.
On the server side, the html renders fine but when it reaches the front end, i keep getting this error in the console
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'accept') at all.page.vue:5:23
I found that if i remove the lang="ts" from the script tag the error goes away, but that defeats the purpose of using typescript.
Has anyone had a similar issue?

@brillout
Copy link
Member

See #461.

@brillout
Copy link
Member

Also see #460.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants