Skip to content

[DevTools Bug] callSite.getScriptNameOrSourceURL is not a function (it is undefined) #33678

@mattchannn

Description

@mattchannn

Website or app

https://github.com/mattchannn/debug-react-dev-tool-error

Repro steps

  1. run yarn install
  2. run yarn ios:pod-install which install ios dependencies
  3. run yarn ios
  4. After the dev server is running up, press 'd' and choose Open DevTools.
  5. In the component tab of the devtools, locate HomeScreen and you can see the error

How often does this bug happen?

Every time

DevTools package (automated)

react-devtools-fusebox

DevTools version (automated)

6.1.1-44c3d3d665

Error message (automated)

callSite.getScriptNameOrSourceURL is not a function (it is undefined)

Error call stack (automated)

at collectStackTrace (http://localhost:8081/index.bundle//&platform=ios&dev=true&lazy=true&minify=false&inlineSourceMap=false&modulesOnly=false&runModule=true&excludeSource=true&sourcePaths=url-server&app=org.reactjs.native.example.mainapp:32160:64)
    at anonymous (native)
    at parseSourceFromOwnerStack (http://localhost:8081/index.bundle//&platform=ios&dev=true&lazy=true&minify=false&inlineSourceMap=false&modulesOnly=false&runModule=true&excludeSource=true&sourcePaths=url-server&app=org.reactjs.native.example.mainapp:32195:26)
    at getSourceForInstance (http://localhost:8081/index.bundle//&platform=ios&dev=true&lazy=true&minify=false&inlineSourceMap=false&modulesOnly=false&runModule=true&excludeSource=true&sourcePaths=url-server&app=org.reactjs.native.example.mainapp:41253:65)
    at getSourceForFiberInstance (http://localhost:8081/index.bundle//&platform=ios&dev=true&lazy=true&minify=false&inlineSourceMap=false&modulesOnly=false&runModule=true&excludeSource=true&sourcePaths=url-server&app=org.reactjs.native.example.mainapp:41219:51)
    at inspectFiberInstanceRaw (http://localhost:8081/index.bundle//&platform=ios&dev=true&lazy=true&minify=false&inlineSourceMap=false&modulesOnly=false&runModule=true&excludeSource=true&sourcePaths=url-server&app=org.reactjs.native.example.mainapp:40097:49)
    at inspectElementRaw (http://localhost:8081/index.bundle//&platform=ios&dev=true&lazy=true&minify=false&inlineSourceMap=false&modulesOnly=false&runModule=true&excludeSource=true&sourcePaths=url-server&app=org.reactjs.native.example.mainapp:39932:45)
    at inspectElement (http://localhost:8081/index.bundle//&platform=ios&dev=true&lazy=true&minify=false&inlineSourceMap=false&modulesOnly=false&runModule=true&excludeSource=true&sourcePaths=url-server&app=org.reactjs.native.example.mainapp:40377:63)
    at anonymous (http://localhost:8081/index.bundle//&platform=ios&dev=true&lazy=true&minify=false&inlineSourceMap=false&modulesOnly=false&runModule=true&excludeSource=true&sourcePaths=url-server&app=org.reactjs.native.example.mainapp:33818:80)
    at apply (native)
    at emit (http://localhost:8081/index.bundle//&platform=ios&dev=true&lazy=true&minify=false&inlineSourceMap=false&modulesOnly=false&runModule=true&excludeSource=true&sourcePaths=url-server&app=org.reactjs.native.example.mainapp:29523:33)
    at anonymous (http://localhost:8081/index.bundle//&platform=ios&dev=true&lazy=true&minify=false&inlineSourceMap=false&modulesOnly=false&runModule=true&excludeSource=true&sourcePaths=url-server&app=org.reactjs.native.example.mainapp:33455:28)
    at emit (http://localhost:8081/index.bundle//&platform=ios&dev=true&lazy=true&minify=false&inlineSourceMap=false&modulesOnly=false&runModule=true&excludeSource=true&sourcePaths=url-server&app=org.reactjs.native.example.mainapp:26780:19)
    at sendMessage (http://localhost:8081/index.bundle//&platform=ios&dev=true&lazy=true&minify=false&inlineSourceMap=false&modulesOnly=false&runModule=true&excludeSource=true&sourcePaths=url-server&app=org.reactjs.native.example.mainapp:26828:32)
    at global (:1:50)

Error component stack (automated)

at yl (http://localhost:8081/debugger-frontend/third_party/react-devtools/react-devtools.js:41:902039)
    at Ds (http://localhost:8081/debugger-frontend/third_party/react-devtools/react-devtools.js:41:888173)
    at div (<anonymous>)
    at Ls (http://localhost:8081/debugger-frontend/third_party/react-devtools/react-devtools.js:41:893741)
    at Zl (http://localhost:8081/debugger-frontend/third_party/react-devtools/react-devtools.js:41:925487)
    at div (<anonymous>)
    at div (<anonymous>)
    at fi (http://localhost:8081/debugger-frontend/third_party/react-devtools/react-devtools.js:41:845882)
    at Oo (http://localhost:8081/debugger-frontend/third_party/react-devtools/react-devtools.js:41:870453)
    at http://localhost:8081/debugger-frontend/third_party/react-devtools/react-devtools.js:41:964669
    at Ds (http://localhost:8081/debugger-frontend/third_party/react-devtools/react-devtools.js:41:888173)
    at http://localhost:8081/debugger-frontend/third_party/react-devtools/react-devtools.js:41:890823
    at div (<anonymous>)
    at div (<anonymous>)
    at div (<anonymous>)
    at Cs (http://localhost:8081/debugger-frontend/third_party/react-devtools/react-devtools.js:41:890657)
    at bu (http://localhost:8081/debugger-frontend/third_party/react-devtools/react-devtools.js:41:966262)
    at ru (http://localhost:8081/debugger-frontend/third_party/react-devtools/react-devtools.js:41:958682)
    at vt (http://localhost:8081/debugger-frontend/third_party/react-devtools/react-devtools.js:41:790493)
    at Xt (http://localhost:8081/debugger-frontend/third_party/react-devtools/react-devtools.js:41:817858)
    at Uc (http://localhost:8081/debugger-frontend/third_party/react-devtools/react-devtools.js:41:945499)
    at Jh (http://localhost:8081/debugger-frontend/third_party/react-devtools/react-devtools.js:41:1105501)

GitHub query string (automated)

https://api.github.com/search/issues?q=callSite.getScriptNameOrSourceURL is not a function (it is undefined) in:title is:issue is:open is:public label:"Component: Developer Tools" repo:facebook/react

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions