We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have the following index.js file:
index.js
import importModules from 'import-modules' const modules = importModules('./test') console.log(modules); export default modules
In the same folder as the index.js file, there is a sub-folder test with multiple .js files.
test
.js
But, the above code produces the following exception: "Cannot read property 'filename' of undefined"
The text was updated successfully, but these errors were encountered:
This is the line that throws the error:
const parentFile = module.parent.filename;
Sorry, something went wrong.
2c3a5c4
No branches or pull requests
I have the following
index.js
file:In the same folder as the
index.js
file, there is a sub-foldertest
with multiple.js
files.But, the above code produces the following exception: "Cannot read property 'filename' of undefined"
The text was updated successfully, but these errors were encountered: