You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I work on Symfony 5, from "node side" I have a main javascirpt "main.js" and, in the same directory, a directory called "modules" that contains some javascript Script (they are Class).
From the "main,js" I instantiate manually all the modules class like this :
I work on Symfony 5, from "node side" I have a main javascirpt "main.js" and, in the same directory, a directory called "modules" that contains some javascript Script (they are Class).
From the "main,js" I instantiate manually all the modules class like this :
Now I'm looking for instantiate automatically all modules files.
So I must get all files names in the directory 'modules' and do something like this :
But when I use the readdir method of "fs", I get this error in front side :
fs.readdir is not a function
I followed this solution webpack-contrib/css-loader#447 (comment) , but I keep the same error message
Any help is welcome :)
The text was updated successfully, but these errors were encountered: