Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

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

Closed

Description

@khalidmaquilang

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"

Activity

  1. jdevcs commented on Aug 21, 2023

    @jdevcs
    Contributor

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

  2. 0xGoenka commented on Aug 27, 2023

    @0xGoenka

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

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

  3. 0xGoenka commented on Aug 27, 2023

    @0xGoenka

    @khalidmaquilang ching web3js version 1.10.0 fixed the pb for me

  4. khalidmaquilang commented on Aug 27, 2023

    @khalidmaquilang
    Author

    @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

  5. jdevcs commented on Aug 28, 2023

    @jdevcs
    Contributor

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

  6. 0xGoenka commented on Aug 28, 2023

    @0xGoenka
  7. LingTaixu commented on Aug 29, 2023

    @LingTaixu

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

  8. Muhammad-Altabba commented on Aug 30, 2023

    @Muhammad-Altabba
    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

Metadata

Metadata

Labels

4.x4.0 relatedBugAddressing a bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions