react-native-rename icon indicating copy to clipboard operation
react-native-rename copied to clipboard

(node:847) Warning: Accessing non-existent property + Please try a different name.

Open jacow opened this issue 5 years ago • 11 comments

(node:847) Warning: Accessing non-existent property 'cat' of module exports inside circular dependency (Use node --trace-warnings ... to show where the warning was created) (node:847) Warning: Accessing non-existent property 'cd' of module exports inside circular dependency (node:847) Warning: Accessing non-existent property 'chmod' of module exports inside circular dependency (node:847) Warning: Accessing non-existent property 'cp' of module exports inside circular dependency (node:847) Warning: Accessing non-existent property 'dirs' of module exports inside circular dependency (node:847) Warning: Accessing non-existent property 'pushd' of module exports inside circular dependency (node:847) Warning: Accessing non-existent property 'popd' of module exports inside circular dependency (node:847) Warning: Accessing non-existent property 'echo' of module exports inside circular dependency (node:847) Warning: Accessing non-existent property 'tempdir' of module exports inside circular dependency (node:847) Warning: Accessing non-existent property 'pwd' of module exports inside circular dependency (node:847) Warning: Accessing non-existent property 'exec' of module exports inside circular dependency (node:847) Warning: Accessing non-existent property 'ls' of module exports inside circular dependency (node:847) Warning: Accessing non-existent property 'find' of module exports inside circular dependency (node:847) Warning: Accessing non-existent property 'grep' of module exports inside circular dependency (node:847) Warning: Accessing non-existent property 'head' of module exports inside circular dependency (node:847) Warning: Accessing non-existent property 'ln' of module exports inside circular dependency (node:847) Warning: Accessing non-existent property 'mkdir' of module exports inside circular dependency (node:847) Warning: Accessing non-existent property 'rm' of module exports inside circular dependency (node:847) Warning: Accessing non-existent property 'mv' of module exports inside circular dependency (node:847) Warning: Accessing non-existent property 'sed' of module exports inside circular dependency (node:847) Warning: Accessing non-existent property 'set' of module exports inside circular dependency (node:847) Warning: Accessing non-existent property 'sort' of module exports inside circular dependency (node:847) Warning: Accessing non-existent property 'tail' of module exports inside circular dependency (node:847) Warning: Accessing non-existent property 'test' of module exports inside circular dependency (node:847) Warning: Accessing non-existent property 'to' of module exports inside circular dependency (node:847) Warning: Accessing non-existent property 'toEnd' of module exports inside circular dependency (node:847) Warning: Accessing non-existent property 'touch' of module exports inside circular dependency (node:847) Warning: Accessing non-existent property 'uniq' of module exports inside circular dependency (node:847) Warning: Accessing non-existent property 'which' of module exports inside circular dependency Please try a different name.

jacow avatar Sep 21 '20 00:09 jacow

@jacow any luck on this.

kalyanijamunkar10 avatar Sep 24 '20 12:09 kalyanijamunkar10

same problem

ebeliejinfren avatar Oct 10 '20 23:10 ebeliejinfren

Is there any update? Can't find any alternative of this tool

cyb3rsalih avatar Oct 14 '20 10:10 cyb3rsalih

I had an assumption that this was caused by the node js version, but switching to version 10.22.3 the problem remained.

У меня было предположение, что это вызвано версией nodejs, но переключившись на версию 10.22.3 проблема осталась.

internal/modules/cjs/loader.js:1023
  throw err;
  ^

Error: Cannot find module '/Users/user/Documents/project/projectName/...'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:1020:15)
    at Function.Module._load (internal/modules/cjs/loader.js:890:27)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
    at internal/main/run_main_module.js:17:47 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}

Yrsafam avatar Oct 23 '20 08:10 Yrsafam

Should be fixed in the new release 2.5.0. Please let me know if the fix works for you.

vomchik avatar Oct 23 '20 19:10 vomchik

Unfortunately, this fix did not help in my situation. Guys who have encountered the same problem, please share the results.

Yrsafam avatar Oct 24 '20 07:10 Yrsafam

@Yrsafam you describe how you run the library? Also share your env info, NodeJS version, OS, etc.

vomchik avatar Oct 27 '20 12:10 vomchik

@vomchik usage: followed the library documentation NodeJS(use NVM): 14.13.1 10.22.1 "react-native": "0.62.2" "react-native-rename": "2.5.0" OS: Windows 10 version 20H2

Yrsafam avatar Nov 04 '20 02:11 Yrsafam

@Yrsafam thanks. looks like it related to os version. will try to figure out...

vomchik avatar Nov 06 '20 12:11 vomchik

is there any update? experiencing same issue.

dekameron22 avatar Nov 20 '20 10:11 dekameron22

had the same issue. its happeing when having expo as env.

add this node_modules/react-native-rename/lib/index.js:98:42

-  var currentAppName = appConfig.name;
+  appConfig = appConfig.expo;
+  var currentAppName = appConfig.name;

jamesjara avatar Apr 07 '21 03:04 jamesjara

Closing, check v3 now.

junedomingo avatar Dec 26 '22 09:12 junedomingo

Using node 19.3.X same issue

iampato avatar Feb 08 '23 12:02 iampato

@iampato What version of react-native-rename are you on?

junedomingo avatar Feb 08 '23 12:02 junedomingo

@iampato try the latest version v3.2.12

junedomingo avatar Feb 08 '23 12:02 junedomingo