Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Usage with Create React App

See original GitHub issue

I made an example using this library with react, everything is working fine in development, but in production it looks like starknet.js is throwing a type error. You can open this page to see the error more in detail.

To reproduce locally:

  • Clone my example repo
  • Build with yarn run build
  • Serve production build with yarn run serve

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

janek26commented, Nov 1, 2021

This helps:

"browserslist": {
    "production": [
      "chrome >= 67",
      "edge >= 79",
      "firefox >= 68",
      "opera >= 54",
      "safari >= 14"
    "development": [
      "last 1 chrome version",
      "last 1 firefox version",
      "last 1 safari version"

in package.json

The issue is that native BigInt support is required atm

0xs34ncommented, Apr 25, 2022

Users who build on the web should probably use next.js as there is an issue with the following packages:

Read more comments on GitHub >

github_iconTop Results From Across the Web

Create a New React App
Create React App is a comfortable environment for learning React, and is the best way to start building a new single-page application in...
Read more >
Create React App
Whether you're using React or another library, Create React App lets you focus on code, not build tools. To create a project called...
Read more >
facebook/create-react-app: Set up a modern web app ... - GitHub
One Dependency: There is only one build dependency. It uses webpack, Babel, ESLint, and other amazing projects, but provides a cohesive curated experience...
Read more >
The React Scripts Start Command – Create-React-App NPM ...
Creating a React application requires you to set up build tools such as Babel and Webpack. These build tools are required because React's...
Read more >
Use in create-react-app - Ant Design
Below is the default directory structure. ... Now we install antd from yarn or npm. ... Modify src/App.js , import Button component from...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found