DataHub Docs
DataHubLearnCommunity
  • 👋Welcome to Figment Docs
  • 🚩Introduction
    • 🚀Why Build on Web 3?
    • 💻What is DataHub?
  • 📖DataHub Guides
    • 📍DataHub Products
      • Transaction Search API
      • Staking API
    • 🏭DataHub Infrastructure
    • 🏁Get Started With DataHub
    • 🚨Quotas & Rate Limits
    • 💡Dashboard how-tos
      • Configuring CORS whitelist
  • 📚Network Documentation
    • 🔭Network Guide
    • 🅰️Arbitrum
      • 🎮RPC & REST API
    • 🏔️Avalanche
      • 🎮RPC & REST API
        • Avalanche Indexer API
    • 💠Binance Smart Chain
      • 🎮RPC & REST API
    • 💰Celo
      • 💼CELO Wallet
      • 🎮RPC & REST API
    • ➰Centrifuge
      • 🎮RPC & REST API
    • 🌌Cosmos
      • 🎮RPC & REST API
      • 🎊Enriched APIs
        • Transaction Search
        • Rewards API
    • 💎Ethereum
      • 🎮RPC & REST API
    • 🧊Fantom
      • 🎮RPC & REST API
    • 🐦Kusama
      • 🎮RPC & REST API
    • 📱Mina
      • 🎮RPC & REST API
        • Indexer API Documentation
        • Query Mina GraphQL API
    • 🌈NEAR
      • 🎮RPC & REST API
      • 🎊Enriched APIs
        • Indexer API
      • 💼NEAR Wallet
    • 🏝️Oasis
      • 🎮RPC & REST API
        • Oasis REST API
    • 🧪Osmosis
      • 🎮RPC & REST API
    • 🍡Polkadot
      • 🎮RPC & REST API
      • 🎊Enriched APIs
        • Indexer API
        • Transaction Search
    • ⛽Polygon (Matic)
      • 🎮RPC & REST API
    • 🔋Solana
      • 🎮RPC & REST API
    • 📚Extra Guides
      • Blockchain Fundamentals
      • Docker Setup for Windows
      • Troubleshooting CORS Errors on DataHub
      • 5XX Retry Logic Best Practices
        • 5XX Retry Logic Best Practices - NodeJS
        • 5XX Retry Logic Best Practices - Python
        • 5XX Retry Logic Best Practices - Ruby
        • 5XX Retry Logic Best Practices - Go
      • Setting up a fresh JavaScript Project with dotenv
      • Getting started with dotenv and .env files
      • Rust Learning Resources
      • Setup Solana BPF Toolchain on Windows
      • Figment Learn Pathway Troubleshooting
  • 🤔Other
    • 🧾Glossary
    • 🗳️Support
  • 🔗Terms & Conditions
    • Terms of Use
    • Terms & Conditions DataHub
    • Privacy Policy
    • Contributor Terms
Powered by GitBook
On this page
  • NodeJS version related errors
  • Any error relating to missing dependencies after running yarn
  • /bin/sh: next: command not found
  • error @polkadot/api@4.17.1: The engine "node" is incompatible with this module. Expected version ">=14.0.0". Got "10.19.0"
  • Browser related errors
  • The Safari browser is known to have issues with Next.js' Hot Module Reloading feature
  • Pathway specific errors
  • SyntaxError: Unexpected token u in JSON at position 0

Was this helpful?

  1. Network Documentation
  2. Extra Guides

Figment Learn Pathway Troubleshooting

Got errors? We've got solutions!

PreviousSetup Solana BPF Toolchain on WindowsNextGlossary

Last updated 3 years ago

Was this helpful?

Here are some potential errors you may encounter when following the Learn Pathways, and how to fix them:

NodeJS version related errors

Any error relating to missing dependencies after running yarn

Ensure you have a sufficient version of NodeJS installed (v14.17.6 LTS or higher) and run the command yarn again in the root directory of the project. Note that warnings can appear frequently during the dependency installation process, but these warnings will not effect the functioning of the Next.js application.

A list of is available, although troubleshooting them is beyond the scope of this document.

/bin/sh: next: command not found

This error is caused by the installed version of NodeJS being too low. Upgrading to a compatible version of NodeJS will solve this. We recommend using nvm , the Node version manager : to install the current LTS version of NodeJS (v14.17.6).

error @polkadot/api@4.17.1: The engine "node" is incompatible with this module. Expected version ">=14.0.0". Got "10.19.0"

This error indicates that the installed version of NodeJS is too low. Upgrading to a compatible version of NodeJS will solve this. We recommend using nvm , the Node version manager : to install the current LTS version of NodeJS (v14.17.6).

Browser related errors

The Safari browser is known to have issues with Next.js' Hot Module Reloading feature

Unfortunately, the Safari web browser is not suitably compatible with the Next.js Hot Module Reloading feature. Use of a supported browser such as Chrome or Firefox is strongly recommended.

Pathway specific errors

SyntaxError: Unexpected token u in JSON at position 0

This error can occur during the Solana pathway. It means that the pathway steps were partially completed, and the user came back to complete the pathway, but the localstorage value for secret is now undefined. The solution is to start the Solana pathway steps from the beginning, and make sure that the value for secret generated during the "Create a Keypair" step is defined during the "Deploy a program" step.

📚
📚
Yarn error codes
https://github.com/nvm-sh/nvm#install--update-script
https://github.com/nvm-sh/nvm#install--update-script