DEV Community

cyro
cyro

Posted on

ReferenceError: require is not defined

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 !!!

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

If this post resonated with you, feel free to hit ❤️ or leave a quick comment to share your thoughts!

Okay