Skip to content
Advertisement

ReferenceError: Can’t find variable: require problem

const { default: axios } = require("axios");

i have problem with gettin data. how can I fix this?

Advertisement

Answer

you have to import axios library

import axios from 'axios';
User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement