adamreisnz / replace-in-file

A simple utility to quickly replace contents in one or more files
580 stars 65 forks source link

SyntaxError: The requested module 'yargs' does not provide an export named 'argv' #195

Closed gokhangunduz closed 3 months ago

gokhangunduz commented 3 months ago

Hi, i have a problem, can you help me? the error following when i upgraded to 8.0.0 version of replace-in-file library.

Compiling...
file:///C:/Users/user/react-project/node_modules/replace-in-file/bin/cli.js:3
import {argv} from 'yargs'
        ^^^^
SyntaxError: The requested module 'yargs' does not provide an export named 'argv'
    at ModuleJob._instantiate (node:internal/modules/esm/module_job:134:21)
    at async ModuleJob.run (node:internal/modules/esm/module_job:217:5)
    at async ModuleLoader.import (node:internal/modules/esm/loader:316:24)
    at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:123:5)

Node.js v20.14.0
ERROR: "cleanWarning" exited with 1.

like issue: https://github.com/adamreisnz/replace-in-file/issues/194

AryanJ-NYC commented 3 months ago

Hi, i have a problem, can you help me? the error following when i upgraded to 8.0.0 version of replace-in-file library.

Compiling...
file:///C:/Users/user/react-project/node_modules/replace-in-file/bin/cli.js:3
import {argv} from 'yargs'
        ^^^^
SyntaxError: The requested module 'yargs' does not provide an export named 'argv'
    at ModuleJob._instantiate (node:internal/modules/esm/module_job:134:21)
    at async ModuleJob.run (node:internal/modules/esm/module_job:217:5)
    at async ModuleLoader.import (node:internal/modules/esm/loader:316:24)
    at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:123:5)

Node.js v20.14.0
ERROR: "cleanWarning" exited with 1.
  • React: v18.3.1
  • Node: v20.14.0

like issue: #194

If you saw an existing issue for your exact problem, why create a new issue?

adamreisnz commented 3 months ago

Duplicate of #194