ReferenceError: require is not defined



This content originally appeared on DEV Community and was authored by cyro

Hi Guys,
I was trying to use webpacker to import all of my images modules using require.context() , but it shows some ReferenceError: require is not defined

Image description

Image description

any leads please !!!


This content originally appeared on DEV Community and was authored by cyro