Open onokumus opened 4 years ago
There is an error in the following lines in the app/javascript/packs/application.js file.
app/javascript/packs/application.js
import 'assets/javascripts/vendor.js' import 'assets/javascripts/app.js'
Here the webpack puts the app.js file top. So metisMenu is called before metisMenu is loaded. My advice is to load the vendor.js file contents as separate modules.
It works! putting the app.js and the vendor.js to app/javascript/packs resolves the error.
app.js
vendor.js
app/javascript/packs
I'll still research a bit more since I think it is not a best practise to get away of the application.js
application.js
Sounds good.
There is an error in the following lines in the
app/javascript/packs/application.js
file.Here the webpack puts the app.js file top. So metisMenu is called before metisMenu is loaded. My advice is to load the vendor.js file contents as separate modules.