GithubHelp home page GithubHelp logo

isabella232 / vite-web3-react-reproduction Goto Github PK

View Code? Open in Web Editor NEW

This project forked from coinagecrypto/vite-web3-react-reproduction

0.0 0.0 0.0 59 KB

License: MIT License

JavaScript 6.48% TypeScript 70.49% CSS 12.20% HTML 10.83%

vite-web3-react-reproduction's Introduction

vite-web3-react-reproduction

This repository reproduces an error with a Vite production build.

In dev mode, clicking the button works, while in a production build, we get:

ReferenceError: require is not defined
    at index.6c14cda2.js:11138
(anonymous) @ index.c33bfdc9.js:20
(anonymous) @ vendor.912106e6.js:9945
Promise.then (async)
_catch @ vendor.912106e6.js:9760
(anonymous) @ vendor.912106e6.js:9917
onClick @ index.c33bfdc9.js:20
Rb @ vendor.912106e6.js:3145
Xb @ vendor.912106e6.js:3157
Yb @ vendor.912106e6.js:3160
Ze @ vendor.912106e6.js:4104
se @ vendor.912106e6.js:4131
(anonymous) @ vendor.912106e6.js:4436
Jb @ vendor.912106e6.js:8471
Nb @ vendor.912106e6.js:3092
jd @ vendor.912106e6.js:4214
yc @ vendor.912106e6.js:3738
hd @ vendor.912106e6.js:3697
exports.unstable_runWithPriority @ vendor.912106e6.js:2383
gg @ vendor.912106e6.js:4657
Hb @ vendor.912106e6.js:8459
gd @ vendor.912106e6.js:3683

Minification is disabled to assist with debugging the production build. The same error is presented if minification is enabled.

vite-web3-react-reproduction's People

Contributors

thekevinbrown avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.