Error Error [ERR_REQUIRE_ESM] when executing npm run dev - Laravel
I used laravel installation, I followed the steps and used nodejs version 14 but when running npm run dev, I receive this error :
[webpack-cli] Error [ERR_REQUIRE_ESM]: Must use import to load ES Module
Replies (1)
Hi,
Could you please try to use "yarn"? Install yarn if you don't have it. Use the below commands.
npm install --global yarn
yarn Try to remove the node_modules folder, yarn.lock, package-lock.json file (if any)? And retry with the installation using yarn.
Thanks