'nodejs vue2 additional loader to handle the result of these loaders

hi today i install new package to my vue 2 project and get error:

You may need an additional loader to handle the result of these loaders.
| import { createRequire } from 'module';

I 6 hours try all methods from stackoverflow and get more and more eror. I give up . let's start over the steps from the beginning.

update 1: what im doing

  "serve": "set NODE_OPTIONS=--openssl-legacy-provider &&  vue-cli-service serve"

run command:

npm run serve

get error: enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source