'Error installing avalanche js in react app
I've been trying to embed avalanchejs into a new react projects. And ran into a few problems. Here's the Github to avalanchejs: https://github.com/ava-labs/avalanchejs In the ReadMe they suggest installing avalanchejs with yarn. Because I normally use npm with react I tried 3 things:
- Creating a new react project with npm then installing avalanchejs with yarn (possible conflicts between package managers).
- Creating a new react project with yarn then installing avalanchejs with yarn.
- Creating a new react project with npm then installing avalanchejs with npm. All 3 ways resulted in an error. Here are the 3 ways in more detail:
Terminal:
- create-react-app test-project
- cd test-project
- npm start
- yarn add avalanche App.js:
import {Avalanche} from "avalanche";(Error) Error Message in started React App When executing yarn build in the terminal this error shows up: Error Message in terminal when running yarn build
Terminal:
- create-react-app test-project2
- cd test-project2
- yarn start
- yarn add avalanche App.js:
import {Avalanche} from "avalanche";Error message in started react app Error Message in terminal when running yarn build
Terminal:
- create-react-app test-project3
- cd test-project3
- npm start
- npm add avalanche App.js:
import {Avalanche} from "avalanche";Error message in started react app Error Message in terminal when running npm run build
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
