Accessing non-existent property ‘padLevels’ of module exports inside circular dependency

Solved Root Cause

exports inside circular dependency

👆 This phrase gave hint to solve the same issue for me, it seems that newer NodeJS versions no longer allows circular dependencies.

Eg –
There are two files – FileA.js, FileB.js

Where FileA.js has

const FileB = require("FileB");

and FileB.js has

const FileA = require("FileA");

After removing one of these circular dependencies by modifying either FileA.js or FileB.js, it was solved!

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)