I am having the following error:
ReferenceError: axios is not defined
I am running the demo1 from Metronic v8.2.3.
I've tried call axios from browser console in the file demo1/authentication/layouts/creative/sign-in.html and have the same error.
In the package.json the package is there
"axios": "^1.6.5", axios: {
scripts: [
"$config.path.node_modules}/axios/dist/axios.min.js"
],
}, This error usually happens when Axios hasn’t been properly imported or included before being called in the project. In modern frameworks and bundled environments, even a small missing dependency or incorrect setup can break the entire request flow, so checking imports and project requirements carefully is always important.
The same idea applies to official online systems as well—missing a required document or step can delay the whole process. Before applying for clearance or scheduling appointments, it’s always smart to check requirements first so everything is prepared correctly from the start.
Small setup details often make the biggest difference in smooth processing.
Hi
axios is already included by default in the `plugins.bundle.js` file, so you don't need to manually include it in your project. The error you're encountering, "ReferenceError: axios is not defined," might be due to how you're trying to use axios or where you're including your custom JavaScript files.
Make sure that you're using axios correctly in your JavaScript files and that you're including your custom scripts after `plugins.bundle.js` to ensure that axios is available when your scripts are executed. If you're still encountering issues, double-check your file paths and how you're including your scripts in your HTML files.