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

Uncaught TypeError: Class extends value undefined is not a constructor or null #6371

Closed
khalidmaquilang opened this issue Aug 20, 2023 · 8 comments · Fixed by #6398
Closed
Assignees
Labels
4.x 4.0 related Bug Addressing a bug

Comments

@khalidmaquilang
Copy link

Expected behavior

Web3 should be run without error in vuejs.

Actual behavior

it displays
image

Steps to reproduce the behavior

  1. Fresh installed Laravel
  2. Install Jetstream
  3. Install Inertiajs

Environment

"@inertiajs/vue3": "^1.0.0",
"@tailwindcss/forms": "^0.5.2",
"@tailwindcss/typography": "^0.5.2",
"@vitejs/plugin-vue": "^4.0.0",
"autoprefixer": "^10.4.7",
"axios": "^1.1.2",
"laravel-vite-plugin": "^0.8.0",
"postcss": "^8.4.14",
"tailwindcss": "^3.1.0",
"vite": "^4.0.0",
"vue": "^3.2.31"
"web3": "^4.1.0"
@jdevcs jdevcs added 4.x 4.0 related Investigate labels Aug 21, 2023
@jdevcs
Copy link
Contributor

jdevcs commented Aug 21, 2023

@khalidmaquilang could you create a sample project repo or online create sandbox using some tool like https://codesandbox.io/ with this error?

@0xGoenka
Copy link

@jdevcs https://github.com/estebanadams/react-web3

Here is a repo reproducing, I got the exact same problem

@0xGoenka
Copy link

@khalidmaquilang ching web3js version 1.10.0 fixed the pb for me

@khalidmaquilang
Copy link
Author

khalidmaquilang commented Aug 27, 2023

@khalidmaquilang ching web3js version 1.10.0 fixed the pb for me

actually i fixed it by downgrading but i want to use the latest.. thanks for producing a repo.. please investigate it @jdevcs

@jdevcs
Copy link
Contributor

jdevcs commented Aug 28, 2023

We will schedule it in next sprint starting tomorrow. cc: @mconnelly8 ?

@0xGoenka
Copy link

0xGoenka commented Aug 28, 2023 via email

@LingTaixu
Copy link

LingTaixu commented Aug 29, 2023

why don't you give it a try
npm i events or yarn add events

@mconnelly8 mconnelly8 added the Bug Addressing a bug label Aug 29, 2023
@Muhammad-Altabba
Copy link
Contributor

Hello @estebanadams,
I just want to say that as @LingTaixu suggested, running yarn add events or npm i events (adding "events": "^3.3.0" to your dependencies at package.json), will fix the issue. So, you can use this for now as a quick fix.
However, we will investigate further for the best solution.

Hi @LingTaixu,
Many thanks for your suggestion. And actually, it is events and not event. So, I edited your comment to fix this 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4.x 4.0 related Bug Addressing a bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants